You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
298 B

/*
* Basic array .length write performance
*/
if (typeof print !== 'function') { print = console.log; }
function test() {
var arr = [];
var i, j;
for (i = 0; i < 3e7; i++) {
arr.length = 1;
}
}
try {
test();
} catch (e) {
print(e.stack || e);
throw e;
}