Permalink
Browse files

Fixes constructor creation with lots of arugments

  • Loading branch information...
1 parent aa22c1e commit 548d8f50bec32adf3c9efb8ca4af95a972913cd1 @yurydelendik yurydelendik committed Mar 7, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/avm2/runtime.ts
View
@@ -632,7 +632,7 @@ module Shumway.AVM2.Runtime {
case 10: return new c(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9]);
}
var applyArguments = [];
- for (var i = 0; args.length; i++) {
+ for (var i = 0; i < args.length; i++) {
applyArguments[i + 1] = args[i];
}
return new (Function.bind.apply(c, applyArguments));

0 comments on commit 548d8f5

Please sign in to comment.