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

Unified Diff: test/message/strong-object-freeze-prop.js

Issue 1166433007: [strong] fix strong object exception messages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months 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 | « src/messages.h ('k') | test/message/strong-object-freeze-prop.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/strong-object-freeze-prop.js
diff --git a/test/mjsunit/strong/equality.js b/test/message/strong-object-freeze-prop.js
similarity index 57%
copy from test/mjsunit/strong/equality.js
copy to test/message/strong-object-freeze-prop.js
index 5e2464c372771df089ee5117ca66a571b35172b2..17250158d56e9c8430906fc73eb27b3ce7cac6fb 100644
--- a/test/mjsunit/strong/equality.js
+++ b/test/message/strong-object-freeze-prop.js
@@ -4,7 +4,8 @@
// Flags: --strong-mode
-(function NoSloppyEquality() {
- assertThrows("'use strong'; 0 == 0", SyntaxError);
- assertThrows("'use strong'; 0 != 0", SyntaxError);
-})();
+"use strong";
+
+let o = {};
+Object.defineProperty(o, "foo", { writable: true });
+Object.defineProperty(o, "foo", { writable: false });
« no previous file with comments | « src/messages.h ('k') | test/message/strong-object-freeze-prop.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698