Index: test/cctest/test-global-handles.cc |
diff --git a/test/cctest/test-global-handles.cc b/test/cctest/test-global-handles.cc |
index 4cc3e158345eb507065039b62ebe19a9b6bc28d6..3d79dba7aa1d838a09035dacd4f1947a2116a528 100644 |
--- a/test/cctest/test-global-handles.cc |
+++ b/test/cctest/test-global-handles.cc |
@@ -493,7 +493,8 @@ TEST(EternalHandles) { |
for (int i = 0; i < kArrayLength; i++) { |
HandleScope scope(isolate); |
- v8::Handle<v8::Value> local = v8::Utils::ToLocal(eternals->Get(i)); |
+ v8::Handle<v8::Value> local = |
+ v8::Utils::ToLocal(eternals->Get(indices[i])); |
v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(local); |
v8::Handle<v8::Value> value = object->Get(i); |
CHECK(value->IsInt32()); |