From bbdbef92748b3b654e1ab3a159f0656db00d1efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 4 Sep 2015 11:44:17 +0200 Subject: [PATCH] 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 Reviewed-By: bnoordhuis - Ben Noordhuis --- test/message/vm_display_syntax_error.out | 2 +- test/message/vm_dont_display_syntax_error.out | 2 +- test/parallel/test-repl.js | 2 +- test/sequential/test-debug-args.js | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/message/vm_display_syntax_error.out b/test/message/vm_display_syntax_error.out index 1b124e2378992e..086944870263f6 100644 --- a/test/message/vm_display_syntax_error.out +++ b/test/message/vm_display_syntax_error.out @@ -2,7 +2,7 @@ beginning test.vm:1 var 5; -^^^ + ^ SyntaxError: Unexpected number at Object.exports.runInThisContext (vm.js:*) at Object. (*test*message*vm_display_syntax_error.js:*) diff --git a/test/message/vm_dont_display_syntax_error.out b/test/message/vm_dont_display_syntax_error.out index 242bc8c10071e4..f2e4a9495231e0 100644 --- a/test/message/vm_dont_display_syntax_error.out +++ b/test/message/vm_dont_display_syntax_error.out @@ -2,7 +2,7 @@ beginning middle test.vm:1 var 5; -^^^ + ^ SyntaxError: Unexpected number at Object.exports.runInThisContext (vm.js:*) at Object. (*test*message*vm_dont_display_syntax_error.js:*) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index 83a9025bec0151..f81a9c92404ac9 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -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; })()', diff --git a/test/sequential/test-debug-args.js b/test/sequential/test-debug-args.js index eb1533d4418a55..43853b3af34218 100644 --- a/test/sequential/test-debug-args.js +++ b/test/sequential/test-debug-args.js @@ -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);