mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 04:07:51 +00:00
LibJS: Implement Temporal.PlainYearMonth.prototype.valueOf
This commit is contained in:
parent
35f22dcf79
commit
b64ccb95ec
Notes:
github-actions[bot]
2024-11-22 18:56:17 +00:00
Author: https://github.com/trflynn89
Commit: b64ccb95ec
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2496
3 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
const plainYearMonth = new Temporal.PlainYearMonth(2021, 7);
|
||||
expect(() => {
|
||||
plainYearMonth.valueOf();
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Cannot convert Temporal.PlainYearMonth to a primitive value"
|
||||
);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue