LibJS: Implement Temporal.PlainDate.prototype.valueOf

This commit is contained in:
Timothy Flynn 2024-11-22 15:18:58 -05:00 committed by Andreas Kling
commit 06ef32818e
Notes: github-actions[bot] 2024-11-23 13:47:36 +00:00
3 changed files with 16 additions and 0 deletions

View file

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