Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index d0c9d26a04ad74d2ddd12b8b04a6c775985a95d2..b94a9d5a9d4e0cf81b4e54158d869ce519928a9d 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2203,9 +2203,10 @@ Local<StackFrame> StackTrace::GetFrame(uint32_t index) const { |
ENTER_V8(isolate); |
EscapableHandleScope scope(reinterpret_cast<Isolate*>(isolate)); |
i::Handle<i::JSArray> self = Utils::OpenHandle(this); |
- i::Object* raw_object = self->GetElementNoExceptionThrown(isolate, index); |
- i::Handle<i::JSObject> obj(i::JSObject::cast(raw_object)); |
- return scope.Escape(Utils::StackFrameToLocal(obj)); |
+ i::Handle<i::Object> obj = |
+ i::Object::GetElementNoExceptionThrown(isolate, self, index); |
+ i::Handle<i::JSObject> jsobj = i::Handle<i::JSObject>::cast(obj); |
+ return scope.Escape(Utils::StackFrameToLocal(jsobj)); |
} |