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