Index: third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
index b7b616fef49f6dcde11be017f3672db710d3b23f..3cd1834b265f9efd13c777a7a135742883e83e9c 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
@@ -366,7 +366,8 @@ void InspectorHeapProfilerAgent::getHeapObjectId(ErrorString* errorString, const |
*errorString = "Inspected context has gone"; |
return; |
} |
- ScriptState::Scope scope(injectedScript->scriptState()); |
+ |
+ v8::HandleScope handles(injectedScript->isolate()); |
v8::Local<v8::Value> value = injectedScript->findObject(*remoteId); |
if (value.IsEmpty() || value->IsUndefined()) { |
*errorString = "Object with given id not found"; |