1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

LibJS: Include time zone name in TemporalInvalidTimeZoneName error

This commit is contained in:
Linus Groh 2022-01-06 21:48:50 +01:00
parent a433727961
commit d42336312c
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ describe("errors", () => {
test("Invalid time zone name", () => {
expect(() => {
new Temporal.TimeZone("foo");
}).toThrowWithMessage(RangeError, "Invalid time zone name");
}).toThrowWithMessage(RangeError, "Invalid time zone name 'foo'");
});
});