From 4c6f4dabf5f43746719117ce176db7d39b893b57 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 15 Jul 2010 13:42:39 -0700 Subject: [PATCH] Adjust tests for error reporting on JSON.parse(undefined) The V8 upgrade changed the stacktrace reports (?) --- test/simple/test-error-reporting.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/simple/test-error-reporting.js b/test/simple/test-error-reporting.js index 1aa39d224a..e65ad7c382 100644 --- a/test/simple/test-error-reporting.js +++ b/test/simple/test-error-reporting.js @@ -36,13 +36,13 @@ errExec('throws_error.js', function (err, stdout, stderr) { // Trying to JSON.parse(undefined) errExec('throws_error2.js', function (err, stdout, stderr) { - assert.ok(/JSON/.test(stderr)); + assert.ok(/SyntaxError/.test(stderr)); }); // Trying to JSON.parse(undefined) in nextTick errExec('throws_error3.js', function (err, stdout, stderr) { - assert.ok(/JSON/.test(stderr)); + assert.ok(/SyntaxError/.test(stderr)); });