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.
 
 
 
 
 
 

17 lines
361 B

// Footprint of a rejected Promise object, no resolve/reject functions.
function test() {
var promises = [];
while (promises.length < 1e5) {
if ((promises.length % 100) == 0) {
Duktape.gc();
}
promises.push(Promise.reject(123));
}
Duktape.gc();
print(promises.length + ' Promises created');
}
test();