Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UserTiming] Correct measure where start is undefined
According to spec, if start is undefined for performance.measure(), 0 will be used as the start time. However, the current implementation treats undefined as "null". This CL doesn't solve all the problems. For backward compatibility, L2 should treat undefined passed to start/end as empty, null as a string 'null'. As a temporary fix, we treat both null and undefined as undefined, which is safer than as 'null'. Bug: 876324 Change-Id: I7d74d6be9552d090ab7f28342be9a739017bf59b Reviewed-on: https://chromium-review.googlesource.com/1180345 Commit-Queue: Liquan (Max) Gǔ <maxlg@chromium.org> Reviewed-by: Yoav Weiss <yoav@yoav.ws> Reviewed-by: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by: Paul Irish <paulirish@chromium.org> Cr-Commit-Position: refs/heads/master@{#585103}
- Loading branch information
1 parent
cd356d3
commit 5452599
Showing
1 changed file
with
39 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters