Index: Source/WebCore/bindings/v8/ScriptDebugServer.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/ScriptDebugServer.cpp (revision 95801) |
+++ Source/WebCore/bindings/v8/ScriptDebugServer.cpp (working copy) |
@@ -251,8 +251,11 @@ |
v8::Handle<v8::Function> currentCallFrameFunction = v8::Local<v8::Function>::Cast(m_debuggerScript.get()->Get(v8::String::New("currentCallFrame"))); |
v8::Handle<v8::Value> argv[] = { m_executionState.get() }; |
v8::Handle<v8::Value> currentCallFrameV8 = currentCallFrameFunction->Call(m_debuggerScript.get(), 1, argv); |
+ |
+ ASSERT(!currentCallFrameV8.IsEmpty()); |
if (!currentCallFrameV8->IsObject()) |
return ScriptValue(v8::Null()); |
+ |
RefPtr<JavaScriptCallFrame> currentCallFrame = JavaScriptCallFrame::create(v8::Debug::GetDebugContext(), v8::Handle<v8::Object>::Cast(currentCallFrameV8)); |
v8::Context::Scope contextScope(m_pausedContext); |
return ScriptValue(toV8(currentCallFrame.release())); |