Index: Source/core/inspector/InjectedScript.cpp |
diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp |
index 8916b46ba5eb2b7cae9796a436ae299c4067ef7e..d3191984f52a56d211456af04daf61352165009c 100644 |
--- a/Source/core/inspector/InjectedScript.cpp |
+++ b/Source/core/inspector/InjectedScript.cpp |
@@ -280,7 +280,7 @@ PassRefPtr<Array<CallFrame> > InjectedScript::wrapCallFrames(const ScriptValue& |
bool hadException = false; |
ScriptValue callFramesValue = callFunctionWithEvalEnabled(function, hadException); |
ASSERT(!hadException); |
- RefPtr<JSONValue> result = callFramesValue.toJSONValue(scriptState()); |
+ RefPtr<JSONValue> result = toJSONValue(callFramesValue); |
if (result && result->type() == JSONValue::TypeArray) |
return Array<CallFrame>::runtimeCast(result); |
return Array<CallFrame>::create(); |
@@ -298,7 +298,7 @@ PassRefPtr<TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapObject(const |
ScriptValue r = callFunctionWithEvalEnabled(wrapFunction, hadException); |
if (hadException) |
return nullptr; |
- RefPtr<JSONObject> rawResult = r.toJSONValue(scriptState())->asObject(); |
+ RefPtr<JSONObject> rawResult = toJSONValue(r)->asObject(); |
return TypeBuilder::Runtime::RemoteObject::runtimeCast(rawResult); |
} |
@@ -316,7 +316,7 @@ PassRefPtr<TypeBuilder::Runtime::RemoteObject> InjectedScript::wrapTable(const S |
ScriptValue r = callFunctionWithEvalEnabled(wrapFunction, hadException); |
if (hadException) |
return nullptr; |
- RefPtr<JSONObject> rawResult = r.toJSONValue(scriptState())->asObject(); |
+ RefPtr<JSONObject> rawResult = toJSONValue(r)->asObject(); |
return TypeBuilder::Runtime::RemoteObject::runtimeCast(rawResult); |
} |