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

Unified Diff: test/cctest/test-api.cc

Issue 10535007: Put inherited readonliness behind a flag, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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') | test/mjsunit/override-read-only-property.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index e151d3d373c34fb7de7f3c94e83b219df66404f6..218e8300b3d9f5b486f412257945399cd50aa939 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -12151,6 +12151,7 @@ TEST(RegExpStringModification) {
// Test that we cannot set a property on the global object if there
// is a read-only property in the prototype chain.
TEST(ReadOnlyPropertyInGlobalProto) {
+ i::FLAG_es5_readonly = true;
v8::HandleScope scope;
v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New();
LocalContext context(0, templ);
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/override-read-only-property.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698