mirror of https://github.com/svaarala/duktape.git
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.
11 lines
231 B
11 lines
231 B
function test() {
|
|
var arr = [];
|
|
var fn;
|
|
while (arr.length < 1e4) {
|
|
fn = function () {};
|
|
fn.prototype = null;
|
|
arr.push(fn);
|
|
}
|
|
print(arr.length + ' anonymous functions created');
|
|
}
|
|
test();
|
|
|