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

Function fxRunModuleFile

xs/tools/xst.c:1023–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021}
1022
1023void fxRunModuleFile(txMachine* the, txString path)
1024{
1025 txSlot* realm = mxProgram.value.reference->next->value.module.realm;
1026 mxPushStringC(path);
1027 mxPushUndefined();
1028 fxRunImport(the, realm, C_NULL);
1029 mxDub();
1030 fxGetID(the, mxID(_then));
1031 mxCall();
1032 fxNewHostFunction(the, fxFulfillModuleFile, 1, XS_NO_ID, XS_NO_ID);
1033 fxNewHostFunction(the, fxRejectModuleFile, 1, XS_NO_ID, XS_NO_ID);
1034 mxRunCount(2);
1035 mxPop();
1036}
1037
1038void fxRunProgramFile(txMachine* the, txString path, txUnsigned flags)
1039{

Callers 2

mainFunction · 0.85
fxRunTestCaseFunction · 0.85

Calls 3

fxRunImportFunction · 0.85
fxGetIDFunction · 0.85
fxNewHostFunctionFunction · 0.85

Tested by

no test coverage detected