Index: third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp |
diff --git a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp |
index d15b0cf9dc00f4575d41b68b698de648c48e9419..35542df790e3809fc77a68827a84b977c68bfc2b 100644 |
--- a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp |
+++ b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.cpp |
@@ -20,7 +20,7 @@ PassRefPtr<JSONObject> RemoteObjectIdBase::parseInjectedScriptId(const String& o |
if (!parsedValue || parsedValue->type() != JSONValue::TypeObject) |
return nullptr; |
- RefPtr<JSONObject> parsedObjectId = parsedValue->asObject(); |
+ RefPtr<JSONObject> parsedObjectId = JSONObject::cast(parsedValue.release()); |
bool success = parsedObjectId->getNumber("injectedScriptId", &m_injectedScriptId); |
if (success) |
return parsedObjectId.release(); |