| 1021 | } |
| 1022 | |
| 1023 | void 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 | |
| 1038 | void fxRunProgramFile(txMachine* the, txString path, txUnsigned flags) |
| 1039 | { |
no test coverage detected