Index: test/cctest/test-decls.cc |
diff --git a/test/cctest/test-decls.cc b/test/cctest/test-decls.cc |
index 781bf9ec858efce6d565a97d2b3b731a258ed5ac..5d487bb7da549aa165328558b13bcbad3d04f881 100644 |
--- a/test/cctest/test-decls.cc |
+++ b/test/cctest/test-decls.cc |
@@ -1145,3 +1145,21 @@ TEST(CrossScriptAssignmentToConst) { |
context.Check("x", EXPECT_RESULT, Number::New(CcTest::isolate(), 1)); |
} |
} |
+ |
+ |
+TEST(Regress425510) { |
+ i::FLAG_harmony_scoping = true; |
+ i::FLAG_allow_natives_syntax = true; |
+ |
+ HandleScope handle_scope(CcTest::isolate()); |
+ |
+ { |
+ SimpleContext context; |
+ |
+ context.Check("'use strict'; o; const o = 10", EXPECT_EXCEPTION); |
+ |
+ for (int i = 0; i < 100; i++) { |
+ context.Check("o.prototype", EXPECT_EXCEPTION); |
+ } |
+ } |
+} |