mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibJS: Implement Temporal.Duration.prototype.valueOf
This commit is contained in:
parent
c715711f88
commit
f57ff63432
Notes:
github-actions[bot]
2024-11-21 00:05:28 +00:00
Author: https://github.com/trflynn89
Commit: f57ff63432
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2431
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/shannonbooth ✅
3 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
describe("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