mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 16:59:47 +00:00
LibJS: Implement Temporal.PlainMonthDay.prototype.valueOf
This commit is contained in:
parent
5389acc231
commit
64811ab7b6
Notes:
github-actions[bot]
2024-11-22 00:25:23 +00:00
Author: https://github.com/trflynn89
Commit: 64811ab7b6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2471
3 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
const plainMonthDay = new Temporal.PlainMonthDay(7, 6);
|
||||
expect(() => {
|
||||
plainMonthDay.valueOf();
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Cannot convert Temporal.PlainMonthDay to a primitive value"
|
||||
);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue