mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibJS: Remove fallback value for get_offset_nanoseconds_for
This is a normative change in the Temporal spec.
See: 664f02d
Note that the tests are not comprehensive.
This commit is contained in:
parent
f1784c9c87
commit
3666d2132b
20 changed files with 140 additions and 15 deletions
|
@ -93,4 +93,12 @@ describe("errors", () => {
|
|||
"A starting point is required for balancing calendar units"
|
||||
);
|
||||
});
|
||||
|
||||
test("custom time zone doesn't have a getOffsetNanosecondsFor function", () => {
|
||||
const zonedDateTime = new Temporal.ZonedDateTime(0n, {});
|
||||
const duration = new Temporal.Duration();
|
||||
expect(() => {
|
||||
Temporal.Duration.compare(duration, duration, { relativeTo: zonedDateTime });
|
||||
}).toThrowWithMessage(TypeError, "null is not a function");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue