| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4fc6388 commit bbdbef9
4 files changed
| 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:*) | |
| 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:*) | |
| 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; })()', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 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); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments