mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:47:34 +00:00
LibJS: Implement Temporal.ZonedDateTime.prototype.valueOf()
This commit is contained in:
parent
3e909c0c49
commit
20300bd7c4
3 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
test("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
const timeZone = new Temporal.TimeZone("UTC");
|
||||
expect(() => {
|
||||
new Temporal.ZonedDateTime(0n, timeZone).valueOf();
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Cannot convert Temporal.ZonedDateTime to a primitive value"
|
||||
);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue