mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibJS: Change wording of ErrorType::NotA to be independent of context
Currently, we have NotA and NotAn, to be used dependent on whether the following word begins with a vowel or not. To avoid this, change the wording on NotA to be independent of this context.
This commit is contained in:
parent
0398089275
commit
76589d6728
Notes:
sideshowbarker
2024-07-18 04:14:44 +09:00
Author: https://github.com/trflynn89
Commit: 76589d6728
Pull-request: https://github.com/SerenityOS/serenity/pull/9975
Reviewed-by: https://github.com/linusg ✅
169 changed files with 171 additions and 171 deletions
|
@ -20,6 +20,6 @@ describe("errors", () => {
|
|||
test("this value must be a Temporal.TimeZone object", () => {
|
||||
expect(() => {
|
||||
Temporal.TimeZone.prototype.getOffsetNanosecondsFor.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a Temporal.TimeZone");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.TimeZone");
|
||||
});
|
||||
});
|
||||
|
|
|
@ -20,6 +20,6 @@ describe("errors", () => {
|
|||
test("this value must be a Temporal.TimeZone object", () => {
|
||||
expect(() => {
|
||||
Temporal.TimeZone.prototype.getOffsetStringFor.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a Temporal.TimeZone");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.TimeZone");
|
||||
});
|
||||
});
|
||||
|
|
|
@ -13,6 +13,6 @@ describe("errors", () => {
|
|||
test("this value must be a Temporal.TimeZone object", () => {
|
||||
expect(() => {
|
||||
Temporal.TimeZone.prototype.toString.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a Temporal.TimeZone");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.TimeZone");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue