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

Unified Diff: test/mjsunit/harmony/proxies-get-prototype-of.js

Issue 1482283002: [runtime] [proxy] implementing [[Get]] trap. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: position of static Created 5 years 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/harmony/proxies-get.js ('k') | test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/harmony/proxies-get-prototype-of.js
diff --git a/test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js b/test/mjsunit/harmony/proxies-get-prototype-of.js
similarity index 71%
rename from test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js
rename to test/mjsunit/harmony/proxies-get-prototype-of.js
index df7525574e50cfeaa17d985fc87dcb78924d02d1..364f5328f4fc173a406a1b94e5bdd942dc288b62 100644
--- a/test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js
+++ b/test/mjsunit/harmony/proxies-get-prototype-of.js
@@ -26,14 +26,13 @@ handler.getPrototypeOf = function() {
assertSame(Object.getPrototypeOf(proxy), target_prototype);
// Test with proxy target:
-var proxy2 = new Proxy(proxy, {});
+var proxy2 = new Proxy(proxy, {'handler':1});
assertSame(Object.getPrototypeOf(proxy2), target_prototype);
// Test with Proxy handler:
-// TODO(neis,cbruni): Uncomment once the get trap works again.
-// var proxy3_prototype = {};
-// var handler_proxy = new Proxy({
-// getPrototypeOf: function() { return proxy3_prototype }
-// }, {});
-// var proxy3 = new Proxy(target, handler_proxy);
-// assertSame(Object.getPrototypeOf(proxy3), target_prototype);
+var proxy3_prototype = {'proto3':true};
+var handler_proxy = new Proxy({
+ getPrototypeOf: function() { return proxy3_prototype }
+}, {});
+var proxy3 = new Proxy(target, handler_proxy);
+assertSame(Object.getPrototypeOf(proxy3), proxy3_prototype);
« no previous file with comments | « test/mjsunit/harmony/proxies-get.js ('k') | test/mjsunit/harmony/proxy/proxy-getPrototypeOf.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698