test: fix tests after V8 upgrade

Some error messages have changed and the --debugger flag does
not exist in V8 anymore.

PR-URL: https://github.com/nodejs/node/pull/3351
Reviewed-By: indutny - Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: bnoordhuis - Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
Michaël Zasso 2015-09-04 11:44:17 +02:00 committed by Ali Ijaz Sheikh
parent 4fc638804c
commit bbdbef9274
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ beginning
test.vm:1
var 5;
^^^
^
SyntaxError: Unexpected number
at Object.exports.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_display_syntax_error.js:*)

View File

@ -2,7 +2,7 @@ beginning
middle
test.vm:1
var 5;
^^^
^
SyntaxError: Unexpected number
at Object.exports.runInThisContext (vm.js:*)
at Object.<anonymous> (*test*message*vm_dont_display_syntax_error.js:*)

View File

@ -149,7 +149,7 @@ function error_test() {
{ client: client_unix, send: '(function() { "use strict"; return 0755; })()',
expect: /^SyntaxError: Octal literals are not allowed in strict mode/ },
{ client: client_unix, send: '(function(a, a, b) { "use strict"; return a + b + c; })()',
expect: /^SyntaxError: Strict mode function may not have duplicate parameter names/ },
expect: /^SyntaxError: Duplicate parameter name not allowed in this context/ },
{ client: client_unix, send: '(function() { "use strict"; with (this) {} })()',
expect: /^SyntaxError: Strict mode code may not include a with statement/ },
{ client: client_unix, send: '(function() { "use strict"; var x; delete x; })()',

View File

@ -1,7 +1,7 @@
'use strict';
// Flags: --debugger
// Flags: --debug-code
var common = require('../common');
var assert = require('assert');
assert.notEqual(process.execArgv.indexOf('--debugger'), -1);
assert.notEqual(process.execArgv.indexOf('--debug-code'), -1);