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:
Timothy Flynn 2021-09-11 15:00:40 -04:00 committed by Andreas Kling
commit 76589d6728
Notes: sideshowbarker 2024-07-18 04:14:44 +09:00
169 changed files with 171 additions and 171 deletions

View file

@ -13,5 +13,5 @@ test("basic functionality", () => {
test("errors on non-boolean |this|", () => {
expect(() => {
Boolean.prototype.toString.call("foo");
}).toThrowWithMessage(TypeError, "Not a Boolean object");
}).toThrowWithMessage(TypeError, "Not an object of type Boolean");
});

View file

@ -12,5 +12,5 @@ test("basic functionality", () => {
test("errors on non-boolean |this|", () => {
expect(() => {
Boolean.prototype.valueOf.call("foo");
}).toThrowWithMessage(TypeError, "Not a Boolean object");
}).toThrowWithMessage(TypeError, "Not an object of type Boolean");
});