MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / _xsbug_done

Function _xsbug_done

tools/test262/_262.c:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182static txInteger gxTest262Async = TEST262_SYNC;
183
184void _xsbug_done(txMachine* the)
185{
186 if (gxTest262Async == TEST262_SYNC)
187 xsTrace("!!! unexpected $DONE: not waiting !!!\n");
188 else if (gxTest262Async == TEST262_ASYNC_DONE)
189 xsTrace("!!! unexpected $DONE: already done !!!\n");
190 else {
191 gxTest262Async = TEST262_ASYNC_DONE;
192 if ((mxArgc > 0) && (xsTest(xsArg(0))))
193 fxBubble(the, 2, fxToString(the, mxArgv(0)), 0, "test262");
194 else
195 fxBubble(the, 2, "<", 0, "test262");
196 }
197}
198
199// stack grows UP
200// pxTaskGetStackStart (on ESP32) returns end of stack (!)

Callers

nothing calls this directly

Calls 2

fxBubbleFunction · 0.85
fxToStringFunction · 0.85

Tested by

no test coverage detected