| Index: src/js/proxy.js
|
| diff --git a/src/js/proxy.js b/src/js/proxy.js
|
| index 2750d40e272f27d3b0a49a0897e25cfbacf2f649..e775ae80f97773d42f5562f14bfa86ef3242c229 100644
|
| --- a/src/js/proxy.js
|
| +++ b/src/js/proxy.js
|
| @@ -20,28 +20,6 @@ utils.Import(function(from) {
|
| MakeTypeError = from.MakeTypeError;
|
| });
|
|
|
| -//----------------------------------------------------------------------------
|
| -
|
| -function ProxyCreateFunction(handler, callTrap, constructTrap) {
|
| - if (!IS_SPEC_OBJECT(handler))
|
| - throw MakeTypeError(kProxyHandlerNonObject, "createFunction")
|
| - if (!IS_CALLABLE(callTrap))
|
| - throw MakeTypeError(kProxyTrapFunctionExpected, "call")
|
| - if (IS_UNDEFINED(constructTrap)) {
|
| - constructTrap = DerivedConstructTrap(callTrap)
|
| - } else if (IS_CALLABLE(constructTrap)) {
|
| - // Make sure the trap receives 'undefined' as this.
|
| - var construct = constructTrap
|
| - constructTrap = function() {
|
| - return %Apply(construct, UNDEFINED, arguments, 0, %_ArgumentsLength());
|
| - }
|
| - } else {
|
| - throw MakeTypeError(kProxyTrapFunctionExpected, "construct")
|
| - }
|
| - return %CreateJSFunctionProxy(
|
| - {}, handler, callTrap, constructTrap, GlobalFunction.prototype)
|
| -}
|
| -
|
| // -------------------------------------------------------------------
|
| // Proxy Builtins
|
|
|
| @@ -140,13 +118,6 @@ function ProxyEnumerate(trap, handler, target) {
|
| return result;
|
| }
|
|
|
| -//-------------------------------------------------------------------
|
| -
|
| -//Set up non-enumerable properties of the Proxy object.
|
| -utils.InstallFunctions(GlobalProxy, DONT_ENUM, [
|
| - "createFunction", ProxyCreateFunction
|
| -]);
|
| -
|
| // -------------------------------------------------------------------
|
| // Exports
|
|
|
|
|