Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index f47c997f518462433d693c9ec5904ae3e702022d..84a63c0dc40ef7b467e680d09d9bc0103a539f8c 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -1928,7 +1928,7 @@ THREADED_TEST(ExecutableAccessorIsPreservedOnAttributeChange) { |
v8::HandleScope scope(isolate); |
LocalContext env; |
v8::Local<v8::Value> res = CompileRun("var a = []; a;"); |
- i::Handle<i::JSObject> a(v8::Utils::OpenHandle(v8::Object::Cast(*res))); |
+ i::Handle<i::JSReceiver> a(v8::Utils::OpenHandle(v8::Object::Cast(*res))); |
CHECK(a->map()->instance_descriptors()->IsFixedArray()); |
CHECK_GT(i::FixedArray::cast(a->map()->instance_descriptors())->length(), 0); |
CompileRun("Object.defineProperty(a, 'length', { writable: false });"); |
@@ -9730,7 +9730,7 @@ THREADED_TEST(Constructor) { |
Local<Function> cons = templ->GetFunction(); |
context->Global()->Set(v8_str("Fun"), cons); |
Local<v8::Object> inst = cons->NewInstance(); |
- i::Handle<i::JSObject> obj(v8::Utils::OpenHandle(*inst)); |
+ i::Handle<i::JSReceiver> obj(v8::Utils::OpenHandle(*inst)); |
CHECK(obj->IsJSObject()); |
Local<Value> value = CompileRun("(new Fun()).constructor === Fun"); |
CHECK(value->BooleanValue()); |
@@ -13741,7 +13741,7 @@ static void ObjectWithExternalArrayTestHelper(Handle<Context> context, |
int element_count, |
i::ExternalArrayType array_type, |
int64_t low, int64_t high) { |
- i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj); |
+ i::Handle<i::JSReceiver> jsobj = v8::Utils::OpenHandle(*obj); |
i::Isolate* isolate = jsobj->GetIsolate(); |
obj->Set(v8_str("field"), |
v8::Int32::New(reinterpret_cast<v8::Isolate*>(isolate), 1503)); |
@@ -13971,8 +13971,8 @@ static void ObjectWithExternalArrayTestHelper(Handle<Context> context, |
CHECK_EQ(true, result->BooleanValue()); |
} |
- i::Handle<ExternalArrayClass> array( |
- ExternalArrayClass::cast(jsobj->elements())); |
+ i::Handle<ExternalArrayClass> array(ExternalArrayClass::cast( |
+ i::Handle<i::JSObject>::cast(jsobj)->elements())); |
for (int i = 0; i < element_count; i++) { |
array->set(i, static_cast<ElementType>(i)); |
} |