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

Function xs_repl_eval

examples/js/repl/esp/repl.c:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void xs_repl_eval(txMachine* the)
57{
58 txStringStream aStream;
59 txSlot* realm = mxProgram.value.reference->next->value.module.realm;
60 aStream.slot = mxArgv(0);
61 aStream.offset = 0;
62 aStream.size = c_strlen(fxToString(the, mxArgv(0)));
63 fxRunScript(the, fxParseScript(the, &aStream, fxStringGetter, mxProgramFlag), mxRealmGlobal(realm), C_NULL, mxRealmClosures(realm)->value.reference, C_NULL, mxProgram.value.reference);
64 mxPullSlot(mxResult);
65}
66
67void xs_repl_isDebug(xsMachine *the)
68{

Callers

nothing calls this directly

Calls 3

fxToStringFunction · 0.85
fxRunScriptFunction · 0.85
fxParseScriptFunction · 0.50

Tested by

no test coverage detected