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

Unified Diff: tracing/tracing/base/math/range.html

Issue 2955053002: Remove tr.b.identity. (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
« no previous file with comments | « tracing/tracing/base/iteration_helpers_test.html ('k') | tracing/tracing/base/math/statistics.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/base/math/range.html
diff --git a/tracing/tracing/base/math/range.html b/tracing/tracing/base/math/range.html
index 489e667b829d99ed83a71db13ab2f30b60b5bc16..f573aabad6f956f506c2db8282cb2640237d7295 100644
--- a/tracing/tracing/base/math/range.html
+++ b/tracing/tracing/base/math/range.html
@@ -223,7 +223,7 @@ tr.exportTo('tr.b.math', function() {
return i1;
}
- const keyFunc = opt_keyFunc || tr.b.identity;
+ const keyFunc = opt_keyFunc || (x => x);
function getValue(index) {
return keyFunc.call(opt_this, array[index]);
}
« no previous file with comments | « tracing/tracing/base/iteration_helpers_test.html ('k') | tracing/tracing/base/math/statistics.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698