Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Unified Diff: src/js/proxy.js

Issue 1427743011: [proxies] Remove "fix" functionality, add (still unused) target property. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/factory.cc ('k') | src/js/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
}
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)
}
// -------------------------------------------------------------------
« no previous file with comments | « src/factory.cc ('k') | src/js/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698