|
@ -36,13 +36,13 @@ errExec('throws_error.js', function (err, stdout, stderr) { |
|
|
|
|
|
|
|
|
// Trying to JSON.parse(undefined)
|
|
|
// Trying to JSON.parse(undefined)
|
|
|
errExec('throws_error2.js', function (err, stdout, stderr) { |
|
|
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
|
|
|
// Trying to JSON.parse(undefined) in nextTick
|
|
|
errExec('throws_error3.js', function (err, stdout, stderr) { |
|
|
errExec('throws_error3.js', function (err, stdout, stderr) { |
|
|
assert.ok(/JSON/.test(stderr)); |
|
|
assert.ok(/SyntaxError/.test(stderr)); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|