Chromium Code Reviews| 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..599daba4ffd1eb0667a80f3d93e09243a62469da 100644 |
| --- a/Source/devtools/front_end/platform/utilities.js |
| +++ b/Source/devtools/front_end/platform/utilities.js |
| @@ -1499,3 +1499,15 @@ Promise.prototype.catchException = function(defaultValue) { |
| return defaultValue; |
| }); |
| } |
| + |
| +/** |
| + * @param {*} object |
| + * @param {*} propertyName |
| + * @param {T} result |
| + * @return {T} |
| + * @template T |
| + */ |
| +function storeResultTo(object, propertyName, result) { |
|
pfeldman
2015/09/02 03:05:52
{ goes next line. not a fan of this since it is no
kozy
2015/09/02 16:34:04
Done.
|
| + object[propertyName] = result; |
| + return result; |
| +} |