MCPcopy Create free account
hub / github.com/microsoft/SandDance / pop

Function pop

docs/external/js/react-dom.development.js:10759–10782  ·  view source on GitHub ↗
(cursor, fiber)

Source from the content-addressed store, hash-verified

10757 }
10758
10759 function pop(cursor, fiber) {
10760 if (index < 0) {
10761 {
10762 error('Unexpected pop.');
10763 }
10764
10765 return;
10766 }
10767
10768 {
10769 if (fiber !== fiberStack[index]) {
10770 error('Unexpected Fiber popped.');
10771 }
10772 }
10773
10774 cursor.current = valueStack[index];
10775 valueStack[index] = null;
10776
10777 {
10778 fiberStack[index] = null;
10779 }
10780
10781 index--;
10782 }
10783
10784 function push(cursor, value, fiber) {
10785 index++;

Callers 8

popContextFunction · 0.70
popTopLevelContextObjectFunction · 0.70
popProviderFunction · 0.70
pushHostContainerFunction · 0.70
popHostContainerFunction · 0.70
popHostContextFunction · 0.70
popSuspenseContextFunction · 0.70

Calls 1

errorFunction · 0.70

Tested by

no test coverage detected