mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +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
169 changed files with 171 additions and 171 deletions
|
@ -6,5 +6,5 @@ test("basic functionality", () => {
|
|||
test("calling with non-BigInt |this|", () => {
|
||||
expect(() => {
|
||||
BigInt.prototype.toLocaleString.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a BigInt object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type BigInt");
|
||||
});
|
||||
|
|
|
@ -6,5 +6,5 @@ test("basic functionality", () => {
|
|||
test("calling with non-BigInt |this|", () => {
|
||||
expect(() => {
|
||||
BigInt.prototype.toString.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a BigInt object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type BigInt");
|
||||
});
|
||||
|
|
|
@ -7,5 +7,5 @@ test("basic functionality", () => {
|
|||
test("calling with non-BigInt |this|", () => {
|
||||
expect(() => {
|
||||
BigInt.prototype.valueOf.call("foo");
|
||||
}).toThrowWithMessage(TypeError, "Not a BigInt object");
|
||||
}).toThrowWithMessage(TypeError, "Not an object of type BigInt");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue