Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 11348) |
+++ test/cctest/test-api.cc (working copy) |
@@ -12441,19 +12441,15 @@ |
// Check that a variable declaration with no explicit initialization |
-// value does not shadow an existing property in the prototype chain. |
-// |
-// This is consistent with Firefox and Safari. |
-// |
-// See http://crbug.com/12548. |
+// value does shadow an existing property in the prototype chain. |
THREADED_TEST(InitGlobalVarInProtoChain) { |
v8::HandleScope scope; |
LocalContext context; |
// Introduce a variable in the prototype chain. |
CompileRun("__proto__.x = 42"); |
- v8::Handle<v8::Value> result = CompileRun("var x; x"); |
+ v8::Handle<v8::Value> result = CompileRun("var x = 43; x"); |
CHECK(!result->IsUndefined()); |
- CHECK_EQ(42, result->Int32Value()); |
+ CHECK_EQ(43, result->Int32Value()); |
} |