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

Unified Diff: test/mjsunit/strong/load-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 | « test/mjsunit/harmony/regress/regress-405844.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 98a3238c4e2c56f2f11c7ba96d9b6f60ca081fa1..e6b2686c7e03a9e0c85592d76d52abd981452ff9 100644
--- a/test/mjsunit/strong/load-proxy.js
+++ b/test/mjsunit/strong/load-proxy.js
@@ -80,19 +80,21 @@ var childObjAccessor2 = { set foo(_){}, set "1"(_){}, __proto__: proxy2 };
// semantics.
Object.freeze(baseObj);
- Object.freeze(proxy1);
- assertThrows(function(){proxy1.foo}, TypeError);
- assertThrows(function(){proxy1[1]}, TypeError);
- assertThrows(function(){childObj1.foo}, TypeError);
- assertThrows(function(){childObj1[1]}, TypeError);
- assertThrows(function(){childObjAccessor1.foo}, TypeError);
- assertThrows(function(){childObjAccessor1[1]}, TypeError);
-
- Object.freeze(proxy2);
- assertThrows(function(){proxy2.foo}, TypeError);
- assertThrows(function(){proxy2[1]}, TypeError);
- assertThrows(function(){childObj2.foo}, TypeError);
- assertThrows(function(){childObj2[1]}, TypeError);
- assertThrows(function(){childObjAccessor2.foo}, TypeError);
- assertThrows(function(){childObjAccessor2[1]}, TypeError);
+ // TODO(neis): Reenable once proxies properly support freeze.
+ //
+ // Object.freeze(proxy1);
+ // assertThrows(function(){proxy1.foo}, TypeError);
+ // assertThrows(function(){proxy1[1]}, TypeError);
+ // assertThrows(function(){childObj1.foo}, TypeError);
+ // assertThrows(function(){childObj1[1]}, TypeError);
+ // assertThrows(function(){childObjAccessor1.foo}, TypeError);
+ // assertThrows(function(){childObjAccessor1[1]}, TypeError);
+ //
+ // Object.freeze(proxy2);
+ // assertThrows(function(){proxy2.foo}, TypeError);
+ // assertThrows(function(){proxy2[1]}, TypeError);
+ // assertThrows(function(){childObj2.foo}, TypeError);
+ // assertThrows(function(){childObj2[1]}, TypeError);
+ // assertThrows(function(){childObjAccessor2.foo}, TypeError);
+ // assertThrows(function(){childObjAccessor2[1]}, TypeError);
})();
« no previous file with comments | « test/mjsunit/harmony/regress/regress-405844.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698