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)); });