mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +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
|
@ -4,7 +4,7 @@ describe("errors", () => {
|
|||
test("called on non-ListFormat object", () => {
|
||||
expect(() => {
|
||||
Intl.ListFormat.prototype.format([]);
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.ListFormat object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.ListFormat");
|
||||
});
|
||||
|
||||
test("called with non-string iterable", () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ describe("errors", () => {
|
|||
test("called on non-ListFormat object", () => {
|
||||
expect(() => {
|
||||
Intl.ListFormat.prototype.formatToParts([]);
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.ListFormat object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.ListFormat");
|
||||
});
|
||||
|
||||
test("called with non-string iterable", () => {
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.baseName;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.calendar;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.caseFirst;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.collation;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.hourCycle;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.language;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.numberingSystem;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.numeric;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.region;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ describe("errors", () => {
|
|||
test("called on non-Locale object", () => {
|
||||
expect(() => {
|
||||
Intl.Locale.prototype.script;
|
||||
}).toThrowWithMessage(TypeError, "Not a Intl.Locale object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type Intl.Locale");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue