Skip to content

Commit 89b3844

Browse files
authored
Merge pull request #25 from danleh/spidermonkey-cli-fix
Fix testList argument for CLI runner with SpiderMonkey
2 parents c65b03a + 87f5e66 commit 89b3844

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)