We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e2ced commit f82065fCopy full SHA for f82065f
test/parallel/test-cli-syntax.js
@@ -13,7 +13,9 @@ const syntaxArgs = [
13
['--check']
14
];
15
16
-const syntaxErrorRE = /^SyntaxError: Unexpected identifier$/m;
+// Match on the name of the `Error` but not the message as it is different
17
+// depending on the JavaScript engine.
18
+const syntaxErrorRE = /^SyntaxError: \b/m;
19
const notFoundRE = /^Error: Cannot find module/m;
20
21
// test good syntax with and without shebang
0 commit comments