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

Unified Diff: test/mjsunit/for-in-opt.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/es6/regress/regress-cr493566.js ('k') | test/mjsunit/harmony/proxies.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/for-in-opt.js
diff --git a/test/mjsunit/for-in-opt.js b/test/mjsunit/for-in-opt.js
index a6ee0ec81e32fdf965b30b831ac714bd64dbb251..996f53979abd17649c701d4977e76f85c2f5f927 100644
--- a/test/mjsunit/for-in-opt.js
+++ b/test/mjsunit/for-in-opt.js
@@ -46,7 +46,7 @@ var handler = {
};
-var proxy = Proxy.create(handler);
+var proxy = new Proxy({}, handler);
var o = {__proto__: proxy};
function f2(o) {
@@ -92,7 +92,7 @@ var handler2 = {
return {value: 10, configurable: true, writable: false, enumerable: true};
}
}
-var proxy2 = Proxy.create(handler2);
+var proxy2 = new Proxy({}, handler2);
var o2 = {__proto__: proxy2};
var p = {x: "x"}
@@ -139,7 +139,7 @@ var handler3 = {
}
};
-var proxy3 = Proxy.create(handler3);
+var proxy3 = new Proxy({}, handler3);
var o3 = {__proto__: proxy3};
function f5() {
« no previous file with comments | « test/mjsunit/es6/regress/regress-cr493566.js ('k') | test/mjsunit/harmony/proxies.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698