Skip to content

Commit 3572a5b

Browse files
ptomato12wrigja
authored andcommitted
Implement change to getOffsetNanosecondsFor limit in polyfill
This is the corresponding change to the polyfill that was changed in the spec text in f23957733c58ffce49186240c4e87610d0cddcca. UPSTREAM_COMMIT=4561f701b9b2763efee8586f057ee87a9682b05d
1 parent 2ce2e23 commit 3572a5b

File tree

2 files changed

+1
-92
lines changed

2 files changed

+1
-92
lines changed

lib/ecmascript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ export function GetOffsetNanosecondsFor(
23102310
if (typeof offsetNs !== 'number') {
23112311
throw new TypeError('bad return from getOffsetNanosecondsFor');
23122312
}
2313-
if (!IsInteger(offsetNs) || MathAbs(offsetNs) > 86400e9) {
2313+
if (!IsInteger(offsetNs) || MathAbs(offsetNs) >= 86400e9) {
23142314
throw new RangeError('out-of-range return from getOffsetNanosecondsFor');
23152315
}
23162316
return offsetNs;

0 commit comments

Comments
 (0)