MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / pop

Function pop

code/dependency-injection-module-system/public/app.js:12627–12650  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

12625 }
12626
12627 function pop(cursor, fiber) {
12628 if (index < 0) {
12629 {
12630 warning(false, 'Unexpected pop.');
12631 }
12632 return;
12633 }
12634
12635 {
12636 if (fiber !== fiberStack[index]) {
12637 warning(false, 'Unexpected Fiber popped.');
12638 }
12639 }
12640
12641 cursor.current = valueStack[index];
12642
12643 valueStack[index] = null;
12644
12645 {
12646 fiberStack[index] = null;
12647 }
12648
12649 index--;
12650 }
12651
12652 function push(cursor, value, fiber) {
12653 index++;

Callers 6

popHostContainerFunction · 0.70
popHostContextFunction · 0.70
popContextProviderFunction · 0.70
popTopLevelContextObjectFunction · 0.70
popProviderFunction · 0.70

Calls 1

warningFunction · 0.85

Tested by

no test coverage detected