Index: Source/core/inspector/JavaScriptCallFrame.cpp |
diff --git a/Source/core/inspector/JavaScriptCallFrame.cpp b/Source/core/inspector/JavaScriptCallFrame.cpp |
index b46137979e0fae6a1ffd14eb39891318e967b97b..4ea0057ae25797655e398388efc51326ff9e421f 100644 |
--- a/Source/core/inspector/JavaScriptCallFrame.cpp |
+++ b/Source/core/inspector/JavaScriptCallFrame.cpp |
@@ -168,7 +168,7 @@ ScriptValue JavaScriptCallFrame::evaluateWithExceptionDetails(ScriptState* scrip |
v8::Handle<v8::Object> wrappedResult = v8::Object::New(m_isolate); |
if (tryCatch.HasCaught()) { |
wrappedResult->Set(v8::String::NewFromUtf8(m_isolate, "result"), tryCatch.Exception()); |
- wrappedResult->Set(v8::String::NewFromUtf8(m_isolate, "exceptionDetails"), createExceptionDetails(tryCatch.Message(), m_isolate)); |
+ wrappedResult->Set(v8::String::NewFromUtf8(m_isolate, "exceptionDetails"), createExceptionDetails(m_isolate, tryCatch.Message())); |
} else { |
wrappedResult->Set(v8::String::NewFromUtf8(m_isolate, "result"), result); |
wrappedResult->Set(v8::String::NewFromUtf8(m_isolate, "exceptionDetails"), v8::Undefined(m_isolate)); |
@@ -199,7 +199,7 @@ ScriptValue JavaScriptCallFrame::setVariableValue(ScriptState* scriptState, int |
return ScriptValue(scriptState, setVariableValueFunction->Call(callFrame, WTF_ARRAY_LENGTH(argv), argv)); |
} |
-v8::Handle<v8::Object> JavaScriptCallFrame::createExceptionDetails(v8::Handle<v8::Message> message, v8::Isolate* isolate) |
+v8::Handle<v8::Object> JavaScriptCallFrame::createExceptionDetails(v8::Isolate* isolate, v8::Handle<v8::Message> message) |
{ |
v8::Handle<v8::Object> exceptionDetails = v8::Object::New(isolate); |
exceptionDetails->Set(v8::String::NewFromUtf8(isolate, "text"), message->Get()); |