Index: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
index abd3cc840b1245a157859e1b576f9976ab1209bb..2503d4931983135518fd2bd0c499527c800bd863 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp |
@@ -1220,13 +1220,13 @@ Node* InspectorDOMAgent::nodeForRemoteId(ErrorString* errorString, const String& |
*errorString = "Cannot find context for specified object id"; |
return nullptr; |
} |
- ScriptState::Scope scope(injectedScript->scriptState()); |
+ v8::HandleScope handles(injectedScript->isolate()); |
v8::Local<v8::Value> value = injectedScript->findObject(*remoteId); |
if (value.IsEmpty()) { |
*errorString = "Node for given objectId not found"; |
return nullptr; |
} |
- v8::Isolate* isolate = injectedScript->scriptState()->isolate(); |
+ v8::Isolate* isolate = injectedScript->isolate(); |
if (!V8Node::hasInstance(value, isolate)) { |
*errorString = "Object id doesn't reference a Node"; |
return nullptr; |