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

Unified Diff: test/mjsunit/strong/load-proxy.js

Issue 1417063011: [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removing unreachable code 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 | « test/mjsunit/regress/regress-crbug-506956.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strong/load-proxy.js
diff --git a/test/mjsunit/strong/load-proxy.js b/test/mjsunit/strong/load-proxy.js
index e6b2686c7e03a9e0c85592d76d52abd981452ff9..417a41faf8dfd0f9f313ba14b6c9ea7c579ddc49 100644
--- a/test/mjsunit/strong/load-proxy.js
+++ b/test/mjsunit/strong/load-proxy.js
@@ -50,8 +50,8 @@ function handlerMaker2(obj) {
};
}
var baseObj = {};
-var proxy1 = Proxy.create(handlerMaker1(baseObj));
-var proxy2 = Proxy.create(handlerMaker2(baseObj));
+var proxy1 = new Proxy({}, handlerMaker1(baseObj));
+var proxy2 = new Proxy({}, handlerMaker2(baseObj));
var childObj1 = { __proto__: proxy1 };
var childObj2 = { __proto__: proxy2 };
var childObjAccessor1 = { set foo(_){}, set "1"(_){}, __proto__: proxy1 };
« no previous file with comments | « test/mjsunit/regress/regress-crbug-506956.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698