mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
LibJS: Implement Temporal.PlainTime.prototype.valueOf()
This commit is contained in:
parent
64b44c7f30
commit
ad89a205bc
Notes:
sideshowbarker
2024-07-18 07:58:11 +09:00
Author: https://github.com/linusg
Commit: ad89a205bc
Pull-request: https://github.com/SerenityOS/serenity/pull/9078
Reviewed-by: https://github.com/IdanHo ✅
3 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
test("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.PlainTime(19, 54, 38).valueOf();
|
||||
}).toThrowWithMessage(TypeError, "Cannot convert Temporal.PlainTime to a primitive value");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue