Skip to content

Commit b8bfffc

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 2cd4f92 commit b8bfffc

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
@@ -148,7 +148,7 @@ function error_test() {
148148
{ client: client_unix, send: '(function() { "use strict"; return 0755; })()',
149149
expect: /^SyntaxError: Octal literals are not allowed in strict mode/ },
150150
{ client: client_unix, send: '(function(a, a, b) { "use strict"; return a + b + c; })()',
151-
expect: /^SyntaxError: Strict mode function may not have duplicate parameter names/ },
151+
expect: /^SyntaxError: Duplicate parameter name not allowed in this context/ },
152152
{ client: client_unix, send: '(function() { "use strict"; with (this) {} })()',
153153
expect: /^SyntaxError: Strict mode code may not include a with statement/ },
154154
{ 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)