mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibJS: Implement Temporal.PlainDateTime.prototype.valueOf
This commit is contained in:
parent
649328fed2
commit
d22ea4db4c
Notes:
github-actions[bot]
2024-11-24 10:44:57 +00:00
Author: https://github.com/trflynn89
Commit: d22ea4db4c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2544
3 changed files with 19 additions and 0 deletions
|
@ -0,0 +1,10 @@
|
|||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.PlainDateTime(2021, 7, 22, 19, 54, 38).valueOf();
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Cannot convert Temporal.PlainDateTime to a primitive value"
|
||||
);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue