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

Function _262_evalScript

tools/test262/_262.c:655–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void _262_evalScript(txMachine* the)
656{
657 txSlot* realm = mxProgram.value.reference->next->value.module.realm;
658 txStringStream aStream;
659 aStream.slot = mxArgv(0);
660 aStream.offset = 0;
661 aStream.size = c_strlen(fxToString(the, mxArgv(0)));
662 fxRunScript(the, fxParseScript(the, &aStream, fxStringGetter, mxProgramFlag | mxDebugFlag), mxRealmGlobal(realm), C_NULL, mxRealmClosures(realm)->value.reference, C_NULL, mxProgram.value.reference);
663 mxPullSlot(mxResult);
664}
665
666#if __ZEPHYR__
667

Callers

nothing calls this directly

Calls 3

fxToStringFunction · 0.85
fxRunScriptFunction · 0.85
fxParseScriptFunction · 0.50

Tested by

no test coverage detected