Skip to content

Commit 87f5e66

Browse files
committed
Fix testList argument for CLI runner with SpiderMonkey
1 parent 4e888f5 commit 87f5e66

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ const isD8 = typeof Realm !== "undefined";
3232
if (isD8)
3333
globalThis.readFile = read;
3434
const isSpiderMonkey = typeof newGlobal !== "undefined";
35-
if (isSpiderMonkey)
35+
if (isSpiderMonkey) {
3636
globalThis.readFile = readRelativeToScript;
37+
globalThis.arguments = scriptArgs;
38+
}
3739

3840
if (typeof arguments !== "undefined" && arguments.length > 0)
3941
testList = arguments.slice();

0 commit comments

Comments
 (0)