LibJS: Implement Temporal.PlainTime.prototype.valueOf

This commit is contained in:
Timothy Flynn 2024-11-23 14:20:26 -05:00 committed by Tim Flynn
commit e37c9eaeff
Notes: github-actions[bot] 2024-11-24 00:37:23 +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.PlainTime(19, 54, 38).valueOf();
}).toThrowWithMessage(TypeError, "Cannot convert Temporal.PlainTime to a primitive value");
});
});