Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index b1a23c1ef7078a24ab166aa1254c76d46ef66838..0ab1359b5db230f721542cdfd81af751b92c4d71 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -12440,9 +12440,9 @@ THREADED_TEST(InitGlobalVarInProtoChain) { |
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()); |
} |