Skip to content

Commit 2803e27

Browse files
committed
Allowing graal-js error message in test-esm-import-flag.
1 parent 8ddeaa0 commit 2803e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graal-nodejs/test/es-module/test-esm-import-flag.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('import modules using --import', { concurrency: true }, () => {
146146
]
147147
);
148148

149-
assert.match(stderr, /SyntaxError: Unexpected token 'export'/);
149+
assert.match(stderr, /SyntaxError: (?:Unexpected token 'export'|Expected an operand but found export)/);
150150
assert.match(stdout, /^\.mjs file\r?\n$/);
151151
assert.strictEqual(code, 1);
152152
assert.strictEqual(signal, null);

0 commit comments

Comments
 (0)