Index: test/cctest/test-global-handles.cc |
diff --git a/test/cctest/test-global-handles.cc b/test/cctest/test-global-handles.cc |
index d0b80d1c8f51fc72270d64371d0c75f56dfe3d79..2261a5a14cf80d3de807f2131fb7a14e0109e989 100644 |
--- a/test/cctest/test-global-handles.cc |
+++ b/test/cctest/test-global-handles.cc |
@@ -334,8 +334,8 @@ TEST(EternalHandles) { |
for (int i = 0; i < kArrayLength; i++) { |
indices[i] = -1; |
HandleScope scope(isolate); |
- v8::Local<v8::Object> object = v8::Object::New(); |
- object->Set(i, v8::Integer::New(i, v8_isolate)); |
+ v8::Local<v8::Object> object = v8::Object::New(v8_isolate); |
+ object->Set(i, v8::Integer::New(v8_isolate, i)); |
// Create with internal api |
eternal_handles->Create( |
isolate, *v8::Utils::OpenHandle(*object), &indices[i]); |
@@ -370,7 +370,7 @@ TEST(EternalHandles) { |
// Create an eternal via the constructor |
{ |
HandleScope scope(isolate); |
- v8::Local<v8::Object> object = v8::Object::New(); |
+ v8::Local<v8::Object> object = v8::Object::New(v8_isolate); |
v8::Eternal<v8::Object> eternal(v8_isolate, object); |
CHECK(!eternal.IsEmpty()); |
CHECK(object == eternal.Get(v8_isolate)); |