@@ -177,7 +177,7 @@ function error_test() {
177177 { client : client_unix , send : '(function() { "use strict"; eval = 17; })()' ,
178178 expect : / \b S y n t a x E r r o r : U n e x p e c t e d e v a l o r a r g u m e n t s i n s t r i c t m o d e / } ,
179179 { client : client_unix , send : '(function() { "use strict"; if (true) function f() { } })()' ,
180- expect : / \b S y n t a x E r r o r : I n s t r i c t m o d e c o d e , f u n c t i o n s c a n o n l y b e d e c l a r e d a t t o p l e v e l o r i m m e d i a t e l y w i t h i n a n o t h e r f u n c t i o n / } ,
180+ expect : / \b S y n t a x E r r o r : I n s t r i c t m o d e c o d e , f u n c t i o n s c a n o n l y b e d e c l a r e d a t t o p l e v e l o r i n s i d e a b l o c k . / } ,
181181 // Named functions can be used:
182182 { client : client_unix , send : 'function blah() { return 1; }' ,
183183 expect : prompt_unix } ,
@@ -228,7 +228,7 @@ function error_test() {
228228 expect : 'Invalid REPL keyword\n' + prompt_unix } ,
229229 // fail when we are not inside a String and a line continuation is used
230230 { client : client_unix , send : '[] \\' ,
231- expect : / \b S y n t a x E r r o r : U n e x p e c t e d t o k e n I L L E G A L / } ,
231+ expect : / \b S y n t a x E r r o r : I n v a l i d o r u n e x p e c t e d t o k e n / } ,
232232 // do not fail when a String is created with line continuation
233233 { client : client_unix , send : '\'the\\\nfourth\\\neye\'' ,
234234 expect : prompt_multiline + prompt_multiline +
@@ -327,7 +327,7 @@ function error_test() {
327327 // Illegal token is not recoverable outside string literal, RegExp literal,
328328 // or block comment. https://github.com/nodejs/node/issues/3611
329329 { client : client_unix , send : 'a = 3.5e' ,
330- expect : / \b S y n t a x E r r o r : U n e x p e c t e d t o k e n I L L E G A L / } ,
330+ expect : / \b S y n t a x E r r o r : I n v a l i d o r u n e x p e c t e d t o k e n / } ,
331331 // Mitigate https://github.com/nodejs/node/issues/548
332332 { client : client_unix , send : 'function name(){ return "node"; };name()' ,
333333 expect : "'node'\n" + prompt_unix } ,
0 commit comments