mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +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
|
@ -31,7 +31,7 @@ describe("errors", () => {
|
|||
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
|
||||
expect(() => Number.prototype.toFixed.call(value)).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Not a Number object"
|
||||
"Not an object of type Number"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -77,7 +77,7 @@ describe("errors", () => {
|
|||
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
|
||||
expect(() => Number.prototype.toString.call(value)).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Not a Number object"
|
||||
"Not an object of type Number"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -14,7 +14,7 @@ describe("errors", () => {
|
|||
[true, [], {}, Symbol("foo"), "bar", 1n].forEach(value => {
|
||||
expect(() => Number.prototype.valueOf.call(value)).toThrowWithMessage(
|
||||
TypeError,
|
||||
"Not a Number object"
|
||||
"Not an object of type Number"
|
||||
);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue