GeezerVison is showing github.com — test: fix tests after V8 upgrade · nodejs/node@bbdbef9
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: test/message/vm_display_syntax_error.out +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ beginning |
2 | 2 |
|
3 | 3 | test.vm:1 |
4 | 4 | var 5; |
5 | | -^^^ |
| 5 | + ^ |
6 | 6 | SyntaxError: Unexpected number |
7 | 7 | at Object.exports.runInThisContext (vm.js:*) |
8 | 8 | at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*) |
|
Collapse file
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 number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ beginning |
2 | 2 | middle |
3 | 3 | test.vm:1 |
4 | 4 | var 5; |
5 | | -^^^ |
| 5 | + ^ |
6 | 6 | SyntaxError: Unexpected number |
7 | 7 | at Object.exports.runInThisContext (vm.js:*) |
8 | 8 | at Object.<anonymous> (*test*message*vm_dont_display_syntax_error.js:*) |
|
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-repl.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -149,7 +149,7 @@ function error_test() { |
149 | 149 | { client: client_unix, send: '(function() { "use strict"; return 0755; })()', |
150 | 150 | expect: /^SyntaxError: Octal literals are not allowed in strict mode/ }, |
151 | 151 | { 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/ }, |
153 | 153 | { client: client_unix, send: '(function() { "use strict"; with (this) {} })()', |
154 | 154 | expect: /^SyntaxError: Strict mode code may not include a with statement/ }, |
155 | 155 | { client: client_unix, send: '(function() { "use strict"; var x; delete x; })()', |
|
Collapse file
Copy file name to clipboard +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | 'use strict'; |
2 | | -// Flags: --debugger |
| 2 | +// Flags: --debug-code |
3 | 3 |
|
4 | 4 | var common = require('../common'); |
5 | 5 | var assert = require('assert'); |
6 | 6 |
|
7 | | -assert.notEqual(process.execArgv.indexOf('--debugger'), -1); |
| 7 | +assert.notEqual(process.execArgv.indexOf('--debug-code'), -1); |