We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f2c580 commit a6d53b4Copy full SHA for a6d53b4
test/parallel/test-repl.js
@@ -209,7 +209,10 @@ const errorTests = [
209
// should throw
210
{
211
send: 'JSON.parse(\'{invalid: \\\'json\\\'}\');',
212
- expect: [/^Uncaught SyntaxError: /]
+ expect: [
213
+ 'Uncaught:',
214
+ /^SyntaxError: /,
215
+ ],
216
},
217
// End of input to JSON.parse error is special case of syntax error,
218
@@ -220,7 +223,10 @@ const errorTests = [
220
223
221
224
222
225
send: 'JSON.parse(\'{\');',
226
227
228
229
230
231
// invalid RegExps are a special case of syntax error,
232
0 commit comments