- Version: 6.2.0
- Platform: Windows 10
This code crash node without notice:
"use strict";
var test = function () {
var random = 0 | Math.random()*1000;
var today = Date.now();
var o = {
['prop_' + random] : today,
random,
today
};
};
console.time('test');
for (var n = 0; n < 100000; n++) {
test();
}
console.timeEnd('test');
When run this simple code, node 6.2.0 end without message. If I reduce the loop from 100.000 to 10.000, the code run perfectly and show