Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp

Issue 1818473002: [DevTools] Move getInternalProperties to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-call-function-on
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp
diff --git a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp
index 46b0cdc848352797175c5fa0c95d4e1866ea3664..b269a5a39b8ed0bdbcba6a3407bd34d173a6d608 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp
+++ b/third_party/WebKit/Source/platform/v8_inspector/V8DebuggerAgentImpl.cpp
@@ -706,9 +706,11 @@ void V8DebuggerAgentImpl::getGeneratorObjectDetails(ErrorString* errorString, co
v8::Context::Scope contextScope(context);
v8::Local<v8::Object> object;
- v8::Local<v8::Value> value = injectedScript->findObject(*remoteId);
- if (value.IsEmpty() || !value->IsObject() || !value->ToObject(context).ToLocal(&object)) {
- *errorString = "Could not find object with given id";
+ v8::Local<v8::Value> value;
+ if (!injectedScript->findObject(errorString, *remoteId, &value))
+ return;
+ if (!value->IsObject() || !value->ToObject(context).ToLocal(&object)) {
+ *errorString = "Could not find object with type Object and given id";
dgozman 2016/03/18 20:52:21 Improve this error string.
kozy 2016/03/18 22:53:16 Done.
return;
}

Powered by Google App Engine
This is Rietveld 408576698