1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:57:44 +00:00

LibJS: Implement Temporal.PlainDate.prototype.valueOf

This commit is contained in:
Idan Horowitz 2021-07-21 19:29:32 +03:00 committed by Linus Groh
parent 3c62b661f4
commit 68aad5d8fa
3 changed files with 20 additions and 0 deletions

View file

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