Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bbdbef9

Browse filesBrowse 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 <fedor.indutny@gmail.com> Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
1 parent 4fc6388 commit bbdbef9
Copy full SHA for bbdbef9

File tree

Expand file treeCollapse file tree

4 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

4 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎test/message/vm_display_syntax_error.out‎

Copy file name to clipboardExpand all lines: test/message/vm_display_syntax_error.out
+1-1Lines 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:*)
Collapse file

‎test/message/vm_dont_display_syntax_error.out‎

Copy file name to clipboardExpand all lines: test/message/vm_dont_display_syntax_error.out
+1-1Lines 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:*)
Collapse file

‎test/parallel/test-repl.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-repl.js
+1-1Lines 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; })()',
Collapse file

‎test/sequential/test-debug-args.js‎

Copy file name to clipboard
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.