Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
039f1977
by Cheng Shao at 2026-02-13T06:27:47-05:00
2 changed files:
Changes:
| ... | ... | @@ -1470,7 +1470,7 @@ async function nodeMain({ searchDirs, mainSoPath, outFd, inFd, args }) { |
| 1470 | 1470 | );
|
| 1471 | 1471 | }
|
| 1472 | 1472 | |
| 1473 | -const isNodeMain = isNode && import.meta.filename === process.argv[1];
|
|
| 1473 | +const isNodeMain = isNode && import.meta.main;
|
|
| 1474 | 1474 | |
| 1475 | 1475 | // node iserv as invoked by
|
| 1476 | 1476 | // GHC.Runtime.Interpreter.Wasm.spawnWasmInterp
|
| ... | ... | @@ -119,7 +119,7 @@ function isMain() { |
| 119 | 119 | return false;
|
| 120 | 120 | }
|
| 121 | 121 | |
| 122 | - return import.meta.filename === process.argv[1];
|
|
| 122 | + return import.meta.main;
|
|
| 123 | 123 | }
|
| 124 | 124 | |
| 125 | 125 | async function main() {
|