Index: third_party/WebKit/Source/devtools/front_end/platform/utilities.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js |
index 7e972bf8de041cd79b1ddb4dc9ee099be5d599ba..93e797abd1d5ee7e7e4ea2debb883f2aea17a9b3 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/platform/utilities.js |
+++ b/third_party/WebKit/Source/devtools/front_end/platform/utilities.js |
@@ -481,6 +481,7 @@ Object.defineProperty(Array.prototype, "remove", |
/** |
* @param {!T} value |
* @param {boolean=} firstOnly |
+ * @return {boolean} |
* @this {Array.<!T>} |
* @template T |
*/ |
@@ -488,16 +489,17 @@ Object.defineProperty(Array.prototype, "remove", |
{ |
var index = this.indexOf(value); |
if (index === -1) |
- return; |
+ return false; |
if (firstOnly) { |
this.splice(index, 1); |
- return; |
+ return true; |
} |
for (var i = index + 1, n = this.length; i < n; ++i) { |
if (this[i] !== value) |
this[index++] = this[i]; |
} |
this.length = index; |
+ return true; |
} |
}); |