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..8d6a3282137d0a5806aa53e363501a4b49d0ef24 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectorHeapProfilerAgent.cpp |
@@ -366,7 +366,9 @@ void InspectorHeapProfilerAgent::getHeapObjectId(ErrorString* errorString, const |
*errorString = "Inspected context has gone"; |
return; |
} |
- ScriptState::Scope scope(injectedScript->scriptState()); |
+ |
+ v8::HandleScope handles(injectedScript->isolate()); |
+ v8::Context::Scope scope(injectedScript->context()); |
dgozman
2016/01/27 22:05:47
Remove this.
pfeldman
2016/01/27 22:15:45
Done.
|
v8::Local<v8::Value> value = injectedScript->findObject(*remoteId); |
if (value.IsEmpty() || value->IsUndefined()) { |
*errorString = "Object with given id not found"; |