mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibJS: Implement Temporal.PlainTime.prototype.valueOf
This commit is contained in:
parent
d639e9429f
commit
e37c9eaeff
Notes:
github-actions[bot]
2024-11-24 00:37:23 +00:00
Author: https://github.com/trflynn89
Commit: e37c9eaeff
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2535
3 changed files with 16 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
|||
describe("errors", () => {
|
||||
test("throws TypeError", () => {
|
||||
expect(() => {
|
||||
new Temporal.PlainTime(19, 54, 38).valueOf();
|
||||
}).toThrowWithMessage(TypeError, "Cannot convert Temporal.PlainTime to a primitive value");
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue