| Index: src/js/proxy.js
|
| diff --git a/src/js/proxy.js b/src/js/proxy.js
|
| index 950ac6b57e7e6ce1c855a4a1027acd560c46fb20..3885e408add350acff7d74276a48a28f7eb8cb5c 100644
|
| --- a/src/js/proxy.js
|
| +++ b/src/js/proxy.js
|
| @@ -28,9 +28,7 @@ function ProxyCreate(target, handler) {
|
| if (!%_IsConstructCall()) {
|
| throw MakeTypeError(kConstructorNotFunction, "Proxy");
|
| }
|
| - // TODO(cbruni): Get the construct call right, this is just a prelimiary
|
| - // version to get started with tests.
|
| - return %CreateJSProxy(this, target, handler);
|
| + return %CreateJSProxy(target, handler);
|
| }
|
|
|
| function ProxyCreateFunction(handler, callTrap, constructTrap) {
|
| @@ -183,14 +181,12 @@ function ProxyEnumerate(proxy) {
|
|
|
| //-------------------------------------------------------------------
|
| %SetCode(GlobalProxy, ProxyCreate);
|
| -%FunctionSetPrototype(GlobalProxy, new GlobalObject());
|
|
|
| //Set up non-enumerable properties of the Proxy object.
|
| utils.InstallFunctions(GlobalProxy, DONT_ENUM, [
|
| "createFunction", ProxyCreateFunction
|
| ]);
|
|
|
| -%AddNamedProperty(GlobalProxy.prototype, "constructor", GlobalProxy, DONT_ENUM);
|
| // -------------------------------------------------------------------
|
| // Exports
|
|
|
|
|