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

Unified Diff: Source/devtools/front_end/platform/utilities.js

Issue 1325783003: [DevTools] Added RemoteArray and RemoteFunction wrappers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/RemoteObject.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/platform/utilities.js
diff --git a/Source/devtools/front_end/platform/utilities.js b/Source/devtools/front_end/platform/utilities.js
index 7e972bf8de041cd79b1ddb4dc9ee099be5d599ba..a112650d776b2d565311a828a81d7cdcd1db127b 100644
--- a/Source/devtools/front_end/platform/utilities.js
+++ b/Source/devtools/front_end/platform/utilities.js
@@ -1499,3 +1499,16 @@ Promise.prototype.catchException = function(defaultValue) {
return defaultValue;
});
}
+
+/**
+ * @param {!Object} object
+ * @param {*} propertyName
+ * @param {T} result
+ * @return {T}
+ * @template T
+ */
+function storeResultTo(object, propertyName, result)
+{
+ object[propertyName] = result;
+ return result;
+}
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/RemoteObject.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698