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

Unified Diff: test/mjsunit/es6/regress/regress-cr493566.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/iteration-semantics.js ('k') | test/mjsunit/for-in-opt.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/regress/regress-cr493566.js
diff --git a/test/mjsunit/es6/regress/regress-cr493566.js b/test/mjsunit/es6/regress/regress-cr493566.js
index 9bb313ffbef5339ccadaedd3dfdbff4d3bd8eb73..95a5a3edd09eb061bbfcfaabf648fc9adb6e73f8 100644
--- a/test/mjsunit/es6/regress/regress-cr493566.js
+++ b/test/mjsunit/es6/regress/regress-cr493566.js
@@ -30,8 +30,8 @@ var global = this;
}
};
- var proto = {};
- var proxy = Proxy.create(handler, proto);
+ var target = {};
+ var proxy = new Proxy(target, handler);
var object = {
__proto__: proxy,
setX(v) {
@@ -74,7 +74,7 @@ var global = this;
}
};
- var proxy = Proxy.create(handler);
+ var proxy = new Proxy({}, handler);
object.setY.call(proxy, 3);
assertEquals(1, calls);
})();
« no previous file with comments | « test/mjsunit/es6/iteration-semantics.js ('k') | test/mjsunit/for-in-opt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698