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

Unified Diff: third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js

Issue 2850333002: DevTools: Promisify Profiler and HeapProfiler domains (Closed)
Patch Set: Created 3 years, 8 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/devtools/front_end/protocol/InspectorBackend.js
diff --git a/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js b/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
index 8dffb4581a19902f968543fd6458e0e65f608e80..92c156063fc7424072ce49ad10caa27e6078f880 100644
--- a/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
+++ b/third_party/WebKit/Source/devtools/front_end/protocol/InspectorBackend.js
@@ -628,9 +628,10 @@ Protocol.InspectorBackend._AgentPrototype = class {
/**
* @param {!Array<*>} args
+ * @return {?}
*/
function runUserCallback(args) {
- return userCallback ? userCallback.apply(null, args) : undefined;
+ return userCallback ? userCallback.apply(null, args) : args[1] || null;
dgozman 2017/05/02 20:03:41 Everyone was checking for error, not for null/unde
alph 2017/05/02 22:48:06 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698