| Index: src/proxy.js
|
| diff --git a/src/proxy.js b/src/proxy.js
|
| index 1ec84c1ec85998dbfa4eadbb233c33526b75e91c..a51f09ae50ff3eee75840e970413ddd75909d9a9 100644
|
| --- a/src/proxy.js
|
| +++ b/src/proxy.js
|
| @@ -47,7 +47,7 @@ $Proxy.createFunction = function(handler, callTrap, constructTrap) {
|
| } else if (IS_SPEC_FUNCTION(constructTrap)) {
|
| construct = function() {
|
| // Make sure the trap receives 'undefined' as this.
|
| - return $Function.prototype.apply.call(constructTrap, void 0, arguments)
|
| + return %Apply(constructTrap, void 0, arguments, 0, %_ArgumentsLength());
|
| }
|
| } else {
|
| throw MakeTypeError("trap_function_expected",
|
| @@ -69,7 +69,7 @@ function DerivedConstructTrap(callTrap) {
|
| if (!IS_SPEC_OBJECT(proto)) proto = $Object.prototype
|
| var obj = new $Object()
|
| obj.__proto__ = proto
|
| - var result = $Function.prototype.apply.call(callTrap, obj, arguments)
|
| + var result = %Apply(callTrap, obj, arguments, 0, %_ArgumentsLength());
|
| return IS_SPEC_OBJECT(result) ? result : obj
|
| }
|
| }
|
|
|