| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 2a86a048cf080322b4661c3b0cbb944944ff0cc5..c1ee927bbbe07d055fd69b883ab8128af64df1c3 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1616,12 +1616,11 @@ Handle<Value> UnboundScript::GetScriptName() {
|
|
|
|
|
| Local<Value> Script::Run() {
|
| - i::Handle<i::HeapObject> obj =
|
| - i::Handle<i::HeapObject>::cast(Utils::OpenHandle(this, true));
|
| + i::Handle<i::Object> obj = Utils::OpenHandle(this, true);
|
| // If execution is terminating, Compile(..)->Run() requires this
|
| // check.
|
| if (obj.is_null()) return Local<Value>();
|
| - i::Isolate* isolate = obj->GetIsolate();
|
| + i::Isolate* isolate = i::Handle<i::HeapObject>::cast(obj)->GetIsolate();
|
| ON_BAILOUT(isolate, "v8::Script::Run()", return Local<Value>());
|
| LOG_API(isolate, "Script::Run");
|
| ENTER_V8(isolate);
|
|
|