Index: Source/bindings/core/v8/ScriptDebugServer.cpp |
diff --git a/Source/bindings/core/v8/ScriptDebugServer.cpp b/Source/bindings/core/v8/ScriptDebugServer.cpp |
index b3216357a0b38304408919a6b39ce53a7967c4f8..bf4d8733035e5f80074c69877dd950f6265ef885 100644 |
--- a/Source/bindings/core/v8/ScriptDebugServer.cpp |
+++ b/Source/bindings/core/v8/ScriptDebugServer.cpp |
@@ -304,7 +304,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. |