Skip to content

Commit 5626e04

Browse files
committed
test: fix tests after V8 upgrade
Some error messages have changed and the --debugger flag does not exist in V8 anymore.
1 parent e680ec2 commit 5626e04

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

test/message/vm_display_syntax_error.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ beginning
22

33
test.vm:1
44
var 5;
5-
^^^
5+
^
66
SyntaxError: Unexpected number
77
at Object.exports.runInThisContext (vm.js:*)
88
at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*)

test/message/vm_dont_display_syntax_error.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ beginning
22
middle
33
test.vm:1
44
var 5;
5-
^^^
5+
^
66
SyntaxError: Unexpected number
77
at Object.exports.runInThisContext (vm.js:*)
88
at Object.<anonymous> (*test*message*vm_dont_display_syntax_error.js:*)

test/parallel/test-repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function error_test() {
149149
{ client: client_unix, send: '(function() { "use strict"; return 0755; })()',
150150
expect: /^SyntaxError: Octal literals are not allowed in strict mode/ },
151151
{ client: client_unix, send: '(function(a, a, b) { "use strict"; return a + b + c; })()',
152-
expect: /^SyntaxError: Strict mode function may not have duplicate parameter names/ },
152+
expect: /^SyntaxError: Duplicate parameter name not allowed in this context/ },
153153
{ client: client_unix, send: '(function() { "use strict"; with (this) {} })()',
154154
expect: /^SyntaxError: Strict mode code may not include a with statement/ },
155155
{ client: client_unix, send: '(function() { "use strict"; var x; delete x; })()',

test/sequential/test-debug-args.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)