Commit 7be5f79
authored
ref(core): Avoid side-effect of & streamline
Related to #16846
This rewrites `timestampInSeconds` to avoid side effects.
As a part of this, I also streamlined this a bit to remove special
handling for missing `timeOrigin`. If that is missing, we just fall back
to using `dateTimestampInSeconds`, instead of doing some custom handling
of `timeOrigin` - IMHO that should not be any less accurate, as
otherwise we are currently mixing `performance.now` with `Date.now()`
which is likely not necessarily accurate either.timestampInSeconds method (#16890)1 parent affebb4 commit 7be5f79
2 files changed
+11
-9
lines changedLines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
44 | 43 | | |
45 | 44 | | |
| |||
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| 57 | + | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
0 commit comments