Chromium Code Reviews| Index: src/js/proxy.js |
| diff --git a/src/js/proxy.js b/src/js/proxy.js |
| index fc38680a13a8daae96d7df99e3acf839ecb35232..f006e6dca2e9447c3de9f03b338948ea8387fbc6 100644 |
| --- a/src/js/proxy.js |
| +++ b/src/js/proxy.js |
| @@ -1,4 +1,4 @@ |
| -// Copyright 2011 the V8 project authors. All rights reserved. |
| +// Copyright 2015 the V8 project authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -30,7 +30,7 @@ function ProxyCreate(handler, proto) { |
| proto = null |
| else if (!(IS_SPEC_OBJECT(proto) || IS_NULL(proto))) |
| throw MakeTypeError(kProxyProtoNonObject) |
| - return %CreateJSProxy(handler, proto) |
| + return %CreateJSProxy({}, handler, proto) |
|
Camillo Bruni
2015/11/12 09:12:56
As you can see from my CL, I changed this to direc
|
| } |
| function ProxyCreateFunction(handler, callTrap, constructTrap) { |
| @@ -50,7 +50,7 @@ function ProxyCreateFunction(handler, callTrap, constructTrap) { |
| throw MakeTypeError(kProxyTrapFunctionExpected, "construct") |
| } |
| return %CreateJSFunctionProxy( |
| - handler, callTrap, constructTrap, GlobalFunction.prototype) |
| + {}, handler, callTrap, constructTrap, GlobalFunction.prototype) |
| } |
| // ------------------------------------------------------------------- |