Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index f8f1930285663cc05eabec606733c29b40de2b9b..406d4048a880a7bf8ce506f9a9319d9128930d17 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -2340,6 +2340,16 @@ THREADED_TEST(GlobalObjectInternalFields) { |
} |
+THREADED_TEST(GlobalObjectHasRealIndexedProperty) { |
+ LocalContext env; |
+ v8::HandleScope scope(v8::Isolate::GetCurrent()); |
+ |
+ v8::Local<v8::Object> global = env->Global(); |
+ global->Set(0, v8::String::New("value")); |
+ CHECK(global->HasRealIndexedProperty(0)); |
+} |
+ |
+ |
static void CheckAlignedPointerInInternalField(Handle<v8::Object> obj, |
void* value) { |
CHECK_EQ(0, static_cast<int>(reinterpret_cast<uintptr_t>(value) & 0x1)); |