Index: Source/bindings/core/v8/ScriptDebugServer.cpp |
diff --git a/Source/bindings/core/v8/ScriptDebugServer.cpp b/Source/bindings/core/v8/ScriptDebugServer.cpp |
index 46cc676f5f06f9684cf2ac2e6afe8eba34f4b9a4..36fa15d8da008e1a61c4fe8cf4b437f6a1b0d4bb 100644 |
--- a/Source/bindings/core/v8/ScriptDebugServer.cpp |
+++ b/Source/bindings/core/v8/ScriptDebugServer.cpp |
@@ -344,7 +344,8 @@ bool ScriptDebugServer::setScriptSource(const String& sourceID, const String& ne |
case 0: |
{ |
v8::Local<v8::Value> normalResult = resultTuple->Get(1); |
- RefPtr<JSONValue> jsonResult = v8ToJSONValue(m_isolate, normalResult, JSONValue::maxDepth); |
+ NonThrowableExceptionState exceptionState; |
+ RefPtr<JSONValue> jsonResult = ScriptValue::to<JSONValuePtr>(m_isolate, normalResult, exceptionState); |
if (jsonResult) |
*result = jsonResult->asObject(); |
// Call stack may have changed after if the edited function was on the stack. |