Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 73270d187c5ed4ea7675ccc25adaab0e6cb00707..90848146788fd19e0f14a2d2ebb420f9d5a0a805 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -161,7 +161,8 @@ void Accessors::ArgumentsIteratorSetter( |
const v8::PropertyCallbackInfo<void>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
HandleScope scope(isolate); |
- Handle<JSObject> object_handle = Utils::OpenHandle(*info.This()); |
+ Handle<JSObject> object_handle = |
+ Handle<JSObject>::cast(Utils::OpenHandle(*info.This())); |
Handle<Object> value_handle = Utils::OpenHandle(*val); |
Handle<Name> name_handle = Utils::OpenHandle(*name); |
@@ -205,7 +206,7 @@ void Accessors::ArrayLengthSetter( |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
HandleScope scope(isolate); |
- Handle<JSObject> object = Utils::OpenHandle(*info.This()); |
+ Handle<JSReceiver> object = Utils::OpenHandle(*info.This()); |
Handle<JSArray> array = Handle<JSArray>::cast(object); |
Handle<Object> length_obj = Utils::OpenHandle(*val); |