mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
07804c7c9a
Check that the calls to Integer::New() and Date::New() succeed and bail out if they don't. V8 returns an empty handle on stack overflow. Trying to set the empty handle as a property on an object results in a NULL pointer dereference in release builds and an assert in debug builds. Fixes #4015.
8 lines
83 B
JavaScript
8 lines
83 B
JavaScript
var fs = require('fs');
|
|
|
|
function load() {
|
|
fs.statSync('.');
|
|
load();
|
|
}
|
|
load();
|