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 35542df790e3809fc77a68827a84b977c68bfc2b..d15b0cf9dc00f4575d41b68b698de648c48e9419 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 @@ |
if (!parsedValue || parsedValue->type() != JSONValue::TypeObject) |
return nullptr; |
- RefPtr<JSONObject> parsedObjectId = JSONObject::cast(parsedValue.release()); |
+ RefPtr<JSONObject> parsedObjectId = parsedValue->asObject(); |
bool success = parsedObjectId->getNumber("injectedScriptId", &m_injectedScriptId); |
if (success) |
return parsedObjectId.release(); |