mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
LibJS: Implement the ECMA-402 Instant.prototype.toLocaleString.js
This commit is contained in:
parent
ea503a4f68
commit
964f41bb53
Notes:
github-actions[bot]
2024-11-29 08:53:41 +00:00
Author: https://github.com/trflynn89
Commit: 964f41bb53
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2615
2 changed files with 14 additions and 4 deletions
|
@ -5,7 +5,7 @@ describe("correct behavior", () => {
|
|||
|
||||
test("basic functionality", () => {
|
||||
const instant = new Temporal.Instant(1625614921123456789n);
|
||||
expect(instant.toLocaleString()).toBe("2021-07-06T23:42:01.123456789Z");
|
||||
expect(instant.toLocaleString([], { timeZone: "UTC" })).toBe("7/6/2021, 11:42:01 PM");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue