1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 15:17:36 +00:00

LibJS: Implement Temporal.PlainDateTime.prototype.valueOf()

This commit is contained in:
Linus Groh 2021-07-22 19:54:18 +01:00
parent 591ee813fb
commit 78acc976a6
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,10 @@
test("errors", () => {
test("throws TypeError", () => {
expect(() => {
new Temporal.PlainDateTime(2021, 7, 22, 19, 54, 38).valueOf();
}).toThrowWithMessage(
TypeError,
"Cannot convert Temporal.PlainDateTime to a primitive value"
);
});
});