| Index: src/runtime.js
|
| diff --git a/src/runtime.js b/src/runtime.js
|
| index c52e7fb2dcb20b19b5e9dd1e36a77aa15ba373ed..14ff1b69cfe02bc3b2ee242f55f274107f6f3f31 100644
|
| --- a/src/runtime.js
|
| +++ b/src/runtime.js
|
| @@ -408,7 +408,7 @@ function CALL_NON_FUNCTION() {
|
| if (!IS_FUNCTION(delegate)) {
|
| throw %MakeTypeError('called_non_callable', [typeof this]);
|
| }
|
| - return delegate.apply(this, arguments);
|
| + return %Apply(delegate, this, arguments, 0, %_ArgumentsLength());
|
| }
|
|
|
|
|
| @@ -417,7 +417,7 @@ function CALL_NON_FUNCTION_AS_CONSTRUCTOR() {
|
| if (!IS_FUNCTION(delegate)) {
|
| throw %MakeTypeError('called_non_callable', [typeof this]);
|
| }
|
| - return delegate.apply(this, arguments);
|
| + return %Apply(delegate, this, arguments, 0, %_ArgumentsLength());
|
| }
|
|
|
|
|
|
|