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

Unified Diff: test/mjsunit/readonly-accessor.js

Issue 271433002: Do not call setters of read-only accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/readonly-accessor.js
diff --git a/test/mjsunit/regress/regress-crbug-351262.js b/test/mjsunit/readonly-accessor.js
similarity index 71%
copy from test/mjsunit/regress/regress-crbug-351262.js
copy to test/mjsunit/readonly-accessor.js
index a2f4eadc0de5c2bd7d27f6e78ff9940fce7b0f85..5a73525fea60d67074d81e392d08d8448f8ae39d 100644
--- a/test/mjsunit/regress/regress-crbug-351262.js
+++ b/test/mjsunit/readonly-accessor.js
@@ -2,5 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-for (var x in this) {};
-JSON.stringify(this);
+var foo = {};
+foo.__proto__ = new String("bar");
+foo.length = 20;
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698