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

Function _xsbug_import_

tools/test262/_262.c:266–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void _xsbug_import_(txMachine* the)
267{
268 txSlot* realm = mxProgram.value.reference->next->value.module.realm;
269 mxPushSlot(mxArgv(0));
270 mxPushUndefined();
271 fxRunImport(the, realm, NULL);
272 mxDub();
273 fxGetID(the, mxID(_then));
274 mxCall();
275 fxNewHostFunction(the, _xsbug_importFulfilled, 1, XS_NO_ID, XS_NO_ID);
276 fxNewHostFunction(the, _xsbug_importRejected, 1, XS_NO_ID, XS_NO_ID);
277 mxRunCount(2);
278 mxPop();
279 if (xsTest(xsArg(1)))
280 gxTest262Async = TEST262_ASYNC_WAITING;
281}
282
283void _xsbug_module_(txMachine* the)
284{

Callers

nothing calls this directly

Calls 3

fxRunImportFunction · 0.85
fxGetIDFunction · 0.85
fxNewHostFunctionFunction · 0.85

Tested by

no test coverage detected