Skip to content

Commit bbdbef9

Browse files
targosofrobots
authored andcommitted
test: fix tests after V8 upgrade
Some error messages have changed and the --debugger flag does not exist in V8 anymore. PR-URL: #3351 Reviewed-By: indutny - Fedor Indutny <[email protected]> Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
1 parent 4fc6388 commit bbdbef9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/message/vm_display_syntax_error.out

+1-1
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

+1-1
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

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
2-
// Flags: --debugger
2+
// Flags: --debug-code
33

44
var common = require('../common');
55
var assert = require('assert');
66

7-
assert.notEqual(process.execArgv.indexOf('--debugger'), -1);
7+
assert.notEqual(process.execArgv.indexOf('--debug-code'), -1);

0 commit comments

Comments
 (0)