Open jroose opened 2 years ago
random_data.js is just 500 lines of this:
var normal_dist = [
-3.8906,-3.6153,-3.4808,-3.3896,-3.3201,-3.2636,-3.2160,-3.1747,-3.1382,-3.1054,-3.0757,-3.0485,-3.0233,-3.0000,-2.9781,-2.9576,-2.9383,-2.9200,-2.9027,-2.8861,
-2.8704,-2.8553,-2.8408,-2.8269,-2.8135,-2.8006,-2.7882,-2.7762,-2.7646,-2.7533,-2.7424,-2.7317,-2.7214,-2.7114,-2.7016,-2.6921,-2.6828,-2.6738,-2.6649,-2.6563,
-2.6479,-2.6396,-2.6315,-2.6236,-2.6159,-2.6083,-2.6008,-2.5935,-2.5863,-2.5793,-2.5724,-2.5656,-2.5589,-2.5523,-2.5459,-2.5395,-2.5333,-2.5271,-2.5211,-2.5151,
-2.5092,-2.5034,-2.4977,-2.4921,-2.4865,-2.4810,-2.4756,-2.4703,-2.4650,-2.4598,-2.4547,-2.4496,-2.4446,-2.4397,-2.4348,-2.4300,-2.4252,-2.4205,-2.4158,-2.4112,
...
2.4112,2.4158,2.4205,2.4252,2.4300,2.4348,2.4397,2.4446,2.4496,2.4547,2.4598,2.4650,2.4703,2.4756,2.4810,2.4865,2.4921,2.4977,2.5034,2.5092,
2.5151,2.5211,2.5271,2.5333,2.5395,2.5459,2.5523,2.5589,2.5656,2.5724,2.5793,2.5863,2.5935,2.6008,2.6083,2.6159,2.6236,2.6315,2.6396,2.6479,
2.6563,2.6649,2.6738,2.6828,2.6921,2.7016,2.7114,2.7214,2.7317,2.7424,2.7533,2.7646,2.7762,2.7882,2.8006,2.8135,2.8269,2.8408,2.8553,2.8704,
2.8861,2.9027,2.9200,2.9383,2.9576,2.9781,3.0000,3.0233,3.0485,3.0757,3.1054,3.1382,3.1747,3.2160,3.2636,3.3201,3.3896,3.4808,3.6153,3.8906
];
Still fails after running npm update.
Link to bug demonstration repository
https://github.com/jroose/nyc_out_of_heap_mem
Expected Behavior
Doesn't throw a JavaScript heap overflow error.
Observed Behavior
Throws a JavaScript heap overflow error.
Troubleshooting steps
Environment Information
./node_modules/.bin/nyc ./node_modules/.bin/mocha --require @babel/register --reporter spec random_data.js