mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
8 years ago
committed by
GitHub
3 changed files with 28 additions and 0 deletions
@ -0,0 +1,22 @@ |
|||
/*=== |
|||
65535 |
|||
foo-0 |
|||
foo-65535 |
|||
undefined |
|||
undefined |
|||
===*/ |
|||
|
|||
function target() { |
|||
print(arguments.length); |
|||
print(this); |
|||
print(arguments[65534]); |
|||
print(arguments[65535]); |
|||
print(arguments[65536]); |
|||
} |
|||
|
|||
var args = []; |
|||
while (args.length < 65536) { |
|||
args.push('foo-' + args.length); |
|||
} |
|||
var f = Function.prototype.bind.apply(target, args); |
|||
f(); |
Loading…
Reference in new issue