mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-25 11:48:06 +00:00
LibJS: Implement Temporal.PlainDate.prototype.valueOf
This commit is contained in:
parent
f8b593a7df
commit
06ef32818e
Notes:
github-actions[bot]
2024-11-23 13:47:36 +00:00
Author: https://github.com/trflynn89
Commit: 06ef32818e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2513
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.PlainDate(2021, 7, 21).valueOf();
|
||||
}).toThrowWithMessage(TypeError, "Cannot convert Temporal.PlainDate to a primitive value");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue