Repository navigation
Commit e6fc2bc
committed
fix: ceil stream remaining timeout to satisfy integer limit validation
hostDateNow() on an installed test clock can return fractional
milliseconds (performance.now() is the clock's time origin). The
difference deadline - hostDateNow() inherits that fraction, which
fails the Number.isSafeInteger check in serverResultLimits and
throws a RangeError instead of applying the leftover deadline.
Math.ceil ensures the remaining timeout is always an integer while
rounding toward the deadline rather than away from it.1 parent 44e1c90 commit e6fc2bc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
0 commit comments