浏览代码

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.
Timothy Flynn 3 年之前
父节点
当前提交
76589d6728
共有 100 个文件被更改,包括 100 次插入100 次删除
  1. 1 1
      Userland/Libraries/LibJS/Runtime/ErrorTypes.h
  2. 1 1
      Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.toLocaleString.js
  3. 1 1
      Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.toString.js
  4. 1 1
      Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.valueOf.js
  5. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Boolean/Boolean.prototype.toString.js
  6. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Boolean/Boolean.prototype.valueOf.js
  7. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Date/Date.prototype.toTemporalInstant.js
  8. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Function/Function.prototype.bind.js
  9. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/ListFormat/ListFormat.prototype.format.js
  10. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/ListFormat/ListFormat.prototype.formatToParts.js
  11. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.baseName.js
  12. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.calendar.js
  13. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.caseFirst.js
  14. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.collation.js
  15. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycle.js
  16. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.language.js
  17. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.numberingSystem.js
  18. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.numeric.js
  19. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.region.js
  20. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.script.js
  21. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.toFixed.js
  22. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.toString.js
  23. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.valueOf.js
  24. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Promise/Promise.prototype.then.js
  25. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js
  26. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.era.js
  27. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.eraYear.js
  28. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.fields.js
  29. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.mergeFields.js
  30. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.toString.js
  31. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.abs.js
  32. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.blank.js
  33. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.days.js
  34. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.hours.js
  35. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.microseconds.js
  36. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.milliseconds.js
  37. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.minutes.js
  38. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.months.js
  39. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.nanoseconds.js
  40. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.negated.js
  41. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.seconds.js
  42. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.sign.js
  43. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.weeks.js
  44. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.with.js
  45. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.years.js
  46. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.add.js
  47. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochMicroseconds.js
  48. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochMilliseconds.js
  49. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochNanoseconds.js
  50. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochSeconds.js
  51. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js
  52. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js
  53. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.since.js
  54. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.subtract.js
  55. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toJSON.js
  56. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toLocaleString.js
  57. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toString.js
  58. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js
  59. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTimeISO.js
  60. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.until.js
  61. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.calendar.js
  62. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.day.js
  63. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.dayOfWeek.js
  64. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.dayOfYear.js
  65. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInMonth.js
  66. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInWeek.js
  67. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInYear.js
  68. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.era.js
  69. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.eraYear.js
  70. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.inLeapYear.js
  71. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.month.js
  72. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.monthCode.js
  73. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.monthsInYear.js
  74. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toJSON.js
  75. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toLocaleString.js
  76. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toString.js
  77. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.weekOfYear.js
  78. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.year.js
  79. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.calendar.js
  80. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.day.js
  81. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.dayOfWeek.js
  82. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.dayOfYear.js
  83. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInMonth.js
  84. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInWeek.js
  85. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInYear.js
  86. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.era.js
  87. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.eraYear.js
  88. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.hour.js
  89. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.inLeapYear.js
  90. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.microsecond.js
  91. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.millisecond.js
  92. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.minute.js
  93. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.month.js
  94. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.monthCode.js
  95. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.monthsInYear.js
  96. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.nanosecond.js
  97. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.second.js
  98. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.weekOfYear.js
  99. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.year.js
  100. 1 1
      Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainMonthDay/PlainMonthDay.prototype.calendar.js

+ 1 - 1
Userland/Libraries/LibJS/Runtime/ErrorTypes.h

@@ -57,7 +57,7 @@
     M(JsonMalformed, "Malformed JSON string")                                                                                           \
     M(NegativeExponent, "Exponent must be positive")                                                                                    \
     M(NonExtensibleDefine, "Cannot define property {} on non-extensible object")                                                        \
-    M(NotA, "Not a {} object")                                                                                                          \
+    M(NotA, "Not an object of type {}")                                                                                                 \
     M(NotAConstructor, "{} is not a constructor")                                                                                       \
     M(NotAFunction, "{} is not a function")                                                                                             \
     M(NotAFunctionNoParam, "Not a function")                                                                                            \

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.toLocaleString.js

@@ -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");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.toString.js

@@ -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");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/BigInt/BigInt.prototype.valueOf.js

@@ -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");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Boolean/Boolean.prototype.toString.js

@@ -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");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Boolean/Boolean.prototype.valueOf.js

@@ -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");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Date/Date.prototype.toTemporalInstant.js

@@ -10,6 +10,6 @@ describe("errors", () => {
     test("this value must be a Date object", () => {
         expect(() => {
             Date.prototype.toTemporalInstant.call(123);
-        }).toThrowWithMessage(TypeError, "Not a Date object");
+        }).toThrowWithMessage(TypeError, "Not an object of type Date");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Function/Function.prototype.bind.js

@@ -144,6 +144,6 @@ describe("errors", () => {
     test("does not accept non-function values", () => {
         expect(() => {
             Function.prototype.bind.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Function object");
+        }).toThrowWithMessage(TypeError, "Not an object of type Function");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/ListFormat/ListFormat.prototype.format.js

@@ -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", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/ListFormat/ListFormat.prototype.formatToParts.js

@@ -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", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.baseName.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.calendar.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.caseFirst.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.collation.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.hourCycle.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.language.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.numberingSystem.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.numeric.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.region.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Intl/Locale/Locale.prototype.script.js

@@ -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");
     });
 });
 

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.toFixed.js

@@ -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"
             );
         });
     });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.toString.js

@@ -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"
             );
         });
     });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Number/Number.prototype.valueOf.js

@@ -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"
             );
         });
     });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Promise/Promise.prototype.then.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js

@@ -11,5 +11,5 @@ test("basic functionality", () => {
 test("|this| must be a symbol", () => {
     expect(() => {
         Symbol.prototype.valueOf.call("foo");
-    }).toThrowWithMessage(TypeError, "Not a Symbol object");
+    }).toThrowWithMessage(TypeError, "Not an object of type Symbol");
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.era.js

@@ -14,7 +14,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Calendar object", () => {
         expect(() => {
             Temporal.Calendar.prototype.era.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
     });
 
     test("argument must be date-like", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.eraYear.js

@@ -14,7 +14,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Calendar object", () => {
         expect(() => {
             Temporal.Calendar.prototype.eraYear.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
     });
 
     test("argument must be date-like", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.fields.js

@@ -27,7 +27,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Calendar object", () => {
         expect(() => {
             Temporal.Calendar.prototype.fields.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
     });
 
     test("iterator values must be strings", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.mergeFields.js

@@ -35,7 +35,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Calendar object", () => {
         expect(() => {
             Temporal.Calendar.prototype.mergeFields.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Calendar");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Calendar");
     });
 
     test("fields argument must be coercible to object", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Calendar/Calendar.prototype.toString.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.abs.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.blank.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.days.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.hours.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.microseconds.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.milliseconds.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.minutes.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.months.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.nanoseconds.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.negated.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.seconds.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.sign.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.weeks.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.with.js

@@ -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", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Duration/Duration.prototype.years.js

@@ -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");
     });
 });

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.add.js

@@ -14,7 +14,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Instant object", () => {
         expect(() => {
             Temporal.Instant.prototype.add.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Instant");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
     });
 
     test("invalid nanoseconds value, positive", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochMicroseconds.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochMilliseconds.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochNanoseconds.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.epochSeconds.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.equals.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.round.js

@@ -27,7 +27,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Instant object", () => {
         expect(() => {
             Temporal.Instant.prototype.round.call("foo", {});
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Instant");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
     });
 
     test("missing options object", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.since.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.subtract.js

@@ -14,7 +14,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Instant object", () => {
         expect(() => {
             Temporal.Instant.prototype.subtract.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Instant");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
     });
 
     test("invalid nanoseconds value, positive", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toJSON.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toLocaleString.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toString.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTime.js

@@ -26,7 +26,7 @@ describe("errors", () => {
     test("this value must be a Temporal.Instant object", () => {
         expect(() => {
             Temporal.Instant.prototype.toZonedDateTime.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.Instant");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.Instant");
     });
 
     test("items argument must be an object", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.toZonedDateTimeISO.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/Instant/Instant.prototype.until.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.calendar.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.day.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.dayOfWeek.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.dayOfYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInMonth.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInWeek.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.daysInYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.era.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.eraYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.inLeapYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.month.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.monthCode.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.monthsInYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toJSON.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toLocaleString.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.toString.js

@@ -39,7 +39,7 @@ describe("errors", () => {
     test("this value must be a Temporal.PlainDate object", () => {
         expect(() => {
             Temporal.PlainDate.prototype.toString.call("foo");
-        }).toThrowWithMessage(TypeError, "Not a Temporal.PlainDate");
+        }).toThrowWithMessage(TypeError, "Not an object of type Temporal.PlainDate");
     });
 
     test("calendarName option must be one of 'auto', 'always', 'never'", () => {

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.weekOfYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDate/PlainDate.prototype.year.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.calendar.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.day.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.dayOfWeek.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.dayOfYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInMonth.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInWeek.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.daysInYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.era.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.eraYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.hour.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.inLeapYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.microsecond.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.millisecond.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.minute.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.month.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.monthCode.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.monthsInYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.nanosecond.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.second.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.weekOfYear.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainDateTime/PlainDateTime.prototype.year.js

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

+ 1 - 1
Userland/Libraries/LibJS/Tests/builtins/Temporal/PlainMonthDay/PlainMonthDay.prototype.calendar.js

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

部分文件因为文件数量过多而无法显示