Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index 9913943501690345451a6ddd567799d81dd7145c..0a3f8248352b094952a4fef732c7393fc384d199 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -867,7 +867,8 @@ void Accessors::FunctionPrototypeSetter( |
const v8::PropertyCallbackInfo<void>& info) { |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(info.GetIsolate()); |
HandleScope scope(isolate); |
- Handle<JSObject> object = Utils::OpenHandle(*info.This()); |
+ Handle<JSObject> object = |
+ Handle<JSObject>::cast(Utils::OpenHandle(*info.This())); |
Handle<Object> value = Utils::OpenHandle(*val); |
SetFunctionPrototype(isolate, object, value); |