diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 69b9b54d1e9e40..a906082f76fd25 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -166,7 +166,7 @@ function error_test() { expect: /^SyntaxError: Delete of an unqualified identifier in strict mode/ }, { client: client_unix, send: '(function() { "use strict"; eval = 17; })()', expect: /^SyntaxError: Unexpected eval or arguments in strict mode/ }, - { client: client_unix, send: '(function() { "use strict"; if (true){ function f() { } } })()', + { client: client_unix, send: '(function() { "use strict"; if (true) function f() { } })()', expect: /^SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function/ }, // Named functions can be used: { client: client_unix, send: 'function blah() { return 1; }',