diff options
Diffstat (limited to 'src/3rdparty/v8/src/proxy.js')
-rw-r--r-- | src/3rdparty/v8/src/proxy.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/3rdparty/v8/src/proxy.js b/src/3rdparty/v8/src/proxy.js index 4e86c88..53a3572 100644 --- a/src/3rdparty/v8/src/proxy.js +++ b/src/3rdparty/v8/src/proxy.js @@ -31,7 +31,7 @@ global.Proxy = new $Object(); var $Proxy = global.Proxy -$Proxy.create = function(handler, proto) { +function ProxyCreate(handler, proto) { if (!IS_SPEC_OBJECT(handler)) throw MakeTypeError("handler_non_object", ["create"]) if (IS_UNDEFINED(proto)) @@ -41,7 +41,7 @@ $Proxy.create = function(handler, proto) { return %CreateJSProxy(handler, proto) } -$Proxy.createFunction = function(handler, callTrap, constructTrap) { +function ProxyCreateFunction(handler, callTrap, constructTrap) { if (!IS_SPEC_OBJECT(handler)) throw MakeTypeError("handler_non_object", ["create"]) if (!IS_SPEC_FUNCTION(callTrap)) @@ -62,6 +62,11 @@ $Proxy.createFunction = function(handler, callTrap, constructTrap) { handler, callTrap, constructTrap, $Function.prototype) } +%CheckIsBootstrapping() +InstallFunctions($Proxy, DONT_ENUM, [ + "create", ProxyCreate, + "createFunction", ProxyCreateFunction +]) //////////////////////////////////////////////////////////////////////////////// |