Browse Source

Adjust tests for error reporting on JSON.parse(undefined)

The V8 upgrade changed the stacktrace reports (?)
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
4c6f4dabf5
  1. 4
      test/simple/test-error-reporting.js

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

Loading…
Cancel
Save