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

Unified Diff: tracing/tracing/core/test_utils.html

Issue 2955043002: Remove tr.b.asArray. (Closed)
Patch Set: Created 3 years, 6 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: tracing/tracing/core/test_utils.html
diff --git a/tracing/tracing/core/test_utils.html b/tracing/tracing/core/test_utils.html
index 1b46de5c53f3235f974fe3c005771bc6f1fb4987..5a10257fb5af6148cd287a190cf8ebf8ca44c544 100644
--- a/tracing/tracing/core/test_utils.html
+++ b/tracing/tracing/core/test_utils.html
@@ -409,7 +409,7 @@ tr.exportTo('tr.c', function() {
formatSingleLineList(list, itemCallback, opt_this) {
opt_this = opt_this || this;
this.push('[');
- tr.b.asArray(list).forEach(function(item, index) {
+ Array.from(list).forEach(function(item, index) {
if (index > 0) this.push(', ');
itemCallback.call(opt_this, item, index);
}, this);
@@ -420,7 +420,7 @@ tr.exportTo('tr.c', function() {
opt_this = opt_this || this;
this.push('[');
this.indentBlock(2, false /* don't break line */, function() {
- tr.b.asArray(list).forEach(function(item, index) {
+ Array.from(list).forEach(function(item, index) {
if (index > 0) this.push(',');
this.breakLine();
itemCallback.call(opt_this, item, index);

Powered by Google App Engine
This is Rietveld 408576698