[UserTimingL3] Throw TypeError on negative time stamp
According to the spec (https://w3c.github.io/user-timing/): 1. "If markOptions's startTime is negative, throw a TypeError.", 2. "If mark is negative, throw a TypeError." when "Convert a mark to a timestamp" The CL is to add these two checks accordingly. Bug: 953865 Change-Id: I8475870cc883dc8c3d3d4f3e65a9d5a0a2189a58 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1691871Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:
Nicolás Peña Moreno <npm@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#676266}
Showing
Please register or sign in to comment