1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:07:45 +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:
Timothy Flynn 2021-09-11 15:00:40 -04:00 committed by Andreas Kling
parent 0398089275
commit 76589d6728
169 changed files with 171 additions and 171 deletions

View file

@ -48,6 +48,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.abs.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -12,6 +12,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "blank", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "days", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "hours", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "microseconds", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "milliseconds", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "minutes", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "months", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "nanoseconds", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -37,6 +37,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.negated.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "seconds", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -12,6 +12,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "sign", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "weeks", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});

View file

@ -42,7 +42,7 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Temporal.Duration.prototype.with.call("foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
test("argument is not an object", () => {

View file

@ -9,6 +9,6 @@ describe("errors", () => {
test("this value must be a Temporal.Duration object", () => {
expect(() => {
Reflect.get(Temporal.Duration.prototype, "years", "foo");
}).toThrowWithMessage(TypeError, "Not a Temporal.Duration");
}).toThrowWithMessage(TypeError, "Not an object of type Temporal.Duration");
});
});