From 961480ac611b4a98c7f3ac918787208aa6a5dfb1 Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Fri, 22 Mar 2024 18:28:44 -0700 Subject: [PATCH] remove some auto-generated error messages in "assert.throws" tests --- .../prototype/getYear/not-a-constructor.js | 2 +- .../prototype/setYear/not-a-constructor.js | 2 +- .../prototype/toGMTString/not-a-constructor.js | 2 +- .../compile/this-cross-realm-instance.js | 4 +--- .../compile/this-subclass-instance.js | 8 ++------ .../prototype/anchor/not-a-constructor.js | 2 +- .../String/prototype/big/not-a-constructor.js | 2 +- .../prototype/blink/not-a-constructor.js | 2 +- .../String/prototype/bold/not-a-constructor.js | 2 +- .../prototype/fixed/not-a-constructor.js | 2 +- .../prototype/fontcolor/not-a-constructor.js | 2 +- .../prototype/fontsize/not-a-constructor.js | 2 +- .../prototype/italics/not-a-constructor.js | 2 +- .../String/prototype/link/not-a-constructor.js | 2 +- .../prototype/small/not-a-constructor.js | 2 +- .../prototype/strike/not-a-constructor.js | 2 +- .../String/prototype/sub/not-a-constructor.js | 2 +- .../prototype/substr/not-a-constructor.js | 2 +- .../String/prototype/sup/not-a-constructor.js | 2 +- .../built-ins/escape/not-a-constructor.js | 2 +- .../built-ins/unescape/not-a-constructor.js | 2 +- .../Symbol.iterator/not-a-constructor.js | 2 +- .../prototype/copyWithin/not-a-constructor.js | 2 +- .../prototype/entries/not-a-constructor.js | 2 +- .../Array/prototype/every/not-a-constructor.js | 2 +- .../Array/prototype/fill/not-a-constructor.js | 2 +- .../prototype/filter/not-a-constructor.js | 2 +- .../Array/prototype/find/not-a-constructor.js | 2 +- .../prototype/findIndex/not-a-constructor.js | 2 +- .../prototype/findLast/not-a-constructor.js | 2 +- .../findLastIndex/not-a-constructor.js | 2 +- .../Array/prototype/flat/not-a-constructor.js | 2 +- .../prototype/flatMap/not-a-constructor.js | 2 +- .../prototype/forEach/not-a-constructor.js | 2 +- .../prototype/includes/not-a-constructor.js | 2 +- .../prototype/indexOf/not-a-constructor.js | 2 +- .../Array/prototype/join/not-a-constructor.js | 2 +- .../Array/prototype/keys/not-a-constructor.js | 2 +- .../prototype/lastIndexOf/not-a-constructor.js | 2 +- .../Array/prototype/map/not-a-constructor.js | 2 +- .../Array/prototype/pop/not-a-constructor.js | 2 +- .../Array/prototype/push/not-a-constructor.js | 2 +- .../prototype/reduce/not-a-constructor.js | 2 +- .../prototype/reduceRight/not-a-constructor.js | 2 +- .../prototype/reverse/not-a-constructor.js | 2 +- .../Array/prototype/shift/not-a-constructor.js | 2 +- .../Array/prototype/slice/not-a-constructor.js | 2 +- .../Array/prototype/some/not-a-constructor.js | 2 +- .../Array/prototype/sort/not-a-constructor.js | 2 +- .../prototype/splice/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../prototype/toReversed/not-a-constructor.js | 2 +- .../prototype/toReversed/this-value-nullish.js | 4 ++-- .../prototype/toSorted/not-a-constructor.js | 2 +- .../prototype/toSorted/this-value-nullish.js | 4 ++-- .../prototype/toSpliced/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/unshift/not-a-constructor.js | 2 +- .../prototype/values/not-a-constructor.js | 2 +- .../Array/prototype/with/not-a-constructor.js | 2 +- .../Array/prototype/with/this-value-nullish.js | 4 ++-- .../ArrayBuffer/isView/not-a-constructor.js | 2 +- .../prototype/slice/not-a-constructor.js | 2 +- test/built-ins/Atomics/add/bad-range.js | 2 +- test/built-ins/Atomics/add/bigint/bad-range.js | 2 +- test/built-ins/Atomics/add/non-views.js | 2 +- .../built-ins/Atomics/add/not-a-constructor.js | 2 +- test/built-ins/Atomics/and/bad-range.js | 2 +- test/built-ins/Atomics/and/bigint/bad-range.js | 2 +- test/built-ins/Atomics/and/non-views.js | 2 +- .../built-ins/Atomics/and/not-a-constructor.js | 2 +- .../Atomics/compareExchange/bad-range.js | 2 +- .../compareExchange/bigint/bad-range.js | 2 +- .../Atomics/compareExchange/non-views.js | 2 +- .../compareExchange/not-a-constructor.js | 2 +- test/built-ins/Atomics/exchange/bad-range.js | 2 +- .../Atomics/exchange/bigint/bad-range.js | 2 +- test/built-ins/Atomics/exchange/non-views.js | 2 +- .../Atomics/exchange/not-a-constructor.js | 2 +- .../Atomics/isLockFree/not-a-constructor.js | 2 +- test/built-ins/Atomics/load/bad-range.js | 2 +- .../built-ins/Atomics/load/bigint/bad-range.js | 2 +- test/built-ins/Atomics/load/non-views.js | 2 +- .../Atomics/load/not-a-constructor.js | 2 +- test/built-ins/Atomics/notify/bad-range.js | 2 +- .../Atomics/notify/bigint/bad-range.js | 2 +- .../bigint/non-bigint64-typedarray-throws.js | 4 ++-- ...hared-bufferdata-count-evaluation-throws.js | 2 +- ...hared-bufferdata-index-evaluation-throws.js | 2 +- ...d-bufferdata-non-shared-int-views-throws.js | 2 +- .../notify/bigint/null-bufferdata-throws.js | 2 +- .../Atomics/notify/count-symbol-throws.js | 2 +- .../count-tointeger-throws-then-wake-throws.js | 2 +- .../Atomics/notify/negative-index-throws.js | 8 ++++---- .../notify/non-int32-typedarray-throws.js | 18 +++++++++--------- ...hared-bufferdata-count-evaluation-throws.js | 2 +- ...hared-bufferdata-index-evaluation-throws.js | 2 +- ...d-bufferdata-non-shared-int-views-throws.js | 12 ++++++------ .../Atomics/notify/non-shared-int-views.js | 12 ++++++------ test/built-ins/Atomics/notify/non-views.js | 2 +- .../Atomics/notify/not-a-constructor.js | 2 +- .../Atomics/notify/not-a-typedarray-throws.js | 4 ++-- .../Atomics/notify/not-an-object-throws.js | 14 +++++++------- .../Atomics/notify/null-bufferdata-throws.js | 2 +- .../notify/out-of-range-index-throws.js | 6 +++--- .../Atomics/notify/symbol-for-index-throws.js | 8 ++++---- test/built-ins/Atomics/or/bad-range.js | 2 +- test/built-ins/Atomics/or/bigint/bad-range.js | 2 +- test/built-ins/Atomics/or/non-views.js | 2 +- test/built-ins/Atomics/or/not-a-constructor.js | 2 +- test/built-ins/Atomics/prop-desc.js | 4 ++-- test/built-ins/Atomics/store/bad-range.js | 2 +- .../Atomics/store/bigint/bad-range.js | 2 +- test/built-ins/Atomics/store/non-views.js | 2 +- .../Atomics/store/not-a-constructor.js | 2 +- test/built-ins/Atomics/sub/bad-range.js | 2 +- test/built-ins/Atomics/sub/bigint/bad-range.js | 2 +- test/built-ins/Atomics/sub/non-views.js | 2 +- .../built-ins/Atomics/sub/not-a-constructor.js | 2 +- test/built-ins/Atomics/wait/bad-range.js | 2 +- .../built-ins/Atomics/wait/bigint/bad-range.js | 2 +- .../wait/bigint/cannot-suspend-throws.js | 2 +- .../wait/bigint/negative-index-throws.js | 8 ++++---- .../bigint/non-bigint64-typedarray-throws.js | 4 ++-- .../bigint/non-shared-bufferdata-throws.js | 4 ++-- .../wait/bigint/null-bufferdata-throws.js | 2 +- .../wait/bigint/out-of-range-index-throws.js | 6 +++--- .../Atomics/wait/cannot-suspend-throws.js | 2 +- .../Atomics/wait/negative-index-throws.js | 8 ++++---- .../wait/non-int32-typedarray-throws.js | 18 +++++++++--------- .../wait/non-shared-bufferdata-throws.js | 4 ++-- .../Atomics/wait/not-a-typedarray-throws.js | 4 ++-- .../Atomics/wait/not-an-object-throws.js | 14 +++++++------- .../Atomics/wait/null-bufferdata-throws.js | 2 +- .../Atomics/wait/out-of-range-index-throws.js | 8 ++++---- .../wait/poisoned-object-for-timeout-throws.js | 4 ++-- .../Atomics/wait/symbol-for-index-throws.js | 8 ++++---- .../Atomics/wait/symbol-for-timeout-throws.js | 8 ++++---- .../Atomics/wait/symbol-for-value-throws.js | 8 ++++---- test/built-ins/Atomics/xor/bad-range.js | 2 +- test/built-ins/Atomics/xor/bigint/bad-range.js | 2 +- test/built-ins/Atomics/xor/non-views.js | 2 +- .../built-ins/Atomics/xor/not-a-constructor.js | 2 +- .../BigInt/asIntN/not-a-constructor.js | 2 +- .../BigInt/asUintN/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../prototype/getBigInt64/not-a-constructor.js | 2 +- .../getBigUint64/not-a-constructor.js | 2 +- .../prototype/getFloat32/not-a-constructor.js | 2 +- .../prototype/getFloat64/not-a-constructor.js | 2 +- .../prototype/getInt16/not-a-constructor.js | 2 +- .../prototype/getInt32/not-a-constructor.js | 2 +- .../prototype/getInt8/not-a-constructor.js | 2 +- .../prototype/getUint16/not-a-constructor.js | 2 +- .../prototype/getUint32/not-a-constructor.js | 2 +- .../prototype/getUint8/not-a-constructor.js | 2 +- .../prototype/setBigInt64/not-a-constructor.js | 2 +- .../setBigUint64/not-a-constructor.js | 2 +- .../prototype/setFloat32/not-a-constructor.js | 2 +- .../prototype/setFloat64/not-a-constructor.js | 2 +- .../prototype/setInt16/not-a-constructor.js | 2 +- .../prototype/setInt32/not-a-constructor.js | 2 +- .../prototype/setInt8/not-a-constructor.js | 2 +- .../prototype/setUint16/not-a-constructor.js | 2 +- .../prototype/setUint32/not-a-constructor.js | 2 +- .../prototype/setUint8/not-a-constructor.js | 2 +- test/built-ins/Date/UTC/not-a-constructor.js | 2 +- test/built-ins/Date/now/not-a-constructor.js | 2 +- test/built-ins/Date/parse/not-a-constructor.js | 2 +- .../prototype/getDate/not-a-constructor.js | 2 +- .../Date/prototype/getDay/not-a-constructor.js | 2 +- .../prototype/getFullYear/not-a-constructor.js | 2 +- .../prototype/getHours/not-a-constructor.js | 2 +- .../getMilliseconds/not-a-constructor.js | 2 +- .../prototype/getMinutes/not-a-constructor.js | 2 +- .../prototype/getMonth/not-a-constructor.js | 2 +- .../prototype/getSeconds/not-a-constructor.js | 2 +- .../prototype/getTime/not-a-constructor.js | 2 +- .../getTimezoneOffset/not-a-constructor.js | 2 +- .../prototype/getUTCDate/not-a-constructor.js | 2 +- .../prototype/getUTCDay/not-a-constructor.js | 2 +- .../getUTCFullYear/not-a-constructor.js | 2 +- .../prototype/getUTCHours/not-a-constructor.js | 2 +- .../getUTCMilliseconds/not-a-constructor.js | 2 +- .../getUTCMinutes/not-a-constructor.js | 2 +- .../prototype/getUTCMonth/not-a-constructor.js | 2 +- .../getUTCSeconds/not-a-constructor.js | 2 +- .../prototype/setDate/not-a-constructor.js | 2 +- .../prototype/setFullYear/not-a-constructor.js | 2 +- .../prototype/setHours/not-a-constructor.js | 2 +- .../setMilliseconds/not-a-constructor.js | 2 +- .../prototype/setMinutes/not-a-constructor.js | 2 +- .../prototype/setMonth/not-a-constructor.js | 2 +- .../prototype/setSeconds/not-a-constructor.js | 2 +- .../prototype/setTime/not-a-constructor.js | 2 +- .../prototype/setUTCDate/not-a-constructor.js | 2 +- .../setUTCFullYear/not-a-constructor.js | 2 +- .../prototype/setUTCHours/not-a-constructor.js | 2 +- .../setUTCMilliseconds/not-a-constructor.js | 2 +- .../setUTCMinutes/not-a-constructor.js | 2 +- .../prototype/setUTCMonth/not-a-constructor.js | 2 +- .../setUTCSeconds/not-a-constructor.js | 2 +- .../toDateString/not-a-constructor.js | 2 +- .../prototype/toISOString/not-a-constructor.js | 2 +- .../Date/prototype/toJSON/not-a-constructor.js | 2 +- .../toLocaleDateString/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../toLocaleTimeString/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../toTimeString/not-a-constructor.js | 2 +- .../prototype/toUTCString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/cleanupSome/not-a-constructor.js | 2 +- .../prototype/register/not-a-constructor.js | 2 +- .../prototype/unregister/not-a-constructor.js | 2 +- .../prototype/apply/not-a-constructor.js | 4 ++-- .../prototype/bind/not-a-constructor.js | 2 +- .../prototype/call/not-a-constructor.js | 4 ++-- .../prototype/toString/not-a-constructor.js | 4 ++-- .../next/not-a-constructor.js | 2 +- .../return/not-a-constructor.js | 2 +- .../throw/not-a-constructor.js | 2 +- test/built-ins/JSON/parse/not-a-constructor.js | 2 +- .../JSON/stringify/not-a-constructor.js | 2 +- .../Symbol.iterator/not-a-constructor.js | 2 +- .../Map/prototype/clear/not-a-constructor.js | 2 +- .../Map/prototype/delete/not-a-constructor.js | 2 +- .../Map/prototype/entries/not-a-constructor.js | 2 +- .../Map/prototype/forEach/not-a-constructor.js | 2 +- .../Map/prototype/get/not-a-constructor.js | 2 +- .../Map/prototype/has/not-a-constructor.js | 2 +- .../Map/prototype/keys/not-a-constructor.js | 2 +- .../Map/prototype/set/not-a-constructor.js | 2 +- .../Map/prototype/values/not-a-constructor.js | 2 +- test/built-ins/Math/abs/not-a-constructor.js | 2 +- test/built-ins/Math/acos/not-a-constructor.js | 2 +- test/built-ins/Math/acosh/not-a-constructor.js | 2 +- test/built-ins/Math/asin/not-a-constructor.js | 2 +- test/built-ins/Math/asinh/not-a-constructor.js | 2 +- test/built-ins/Math/atan/not-a-constructor.js | 2 +- test/built-ins/Math/atan2/not-a-constructor.js | 2 +- test/built-ins/Math/atanh/not-a-constructor.js | 2 +- test/built-ins/Math/cbrt/not-a-constructor.js | 2 +- test/built-ins/Math/ceil/not-a-constructor.js | 2 +- test/built-ins/Math/clz32/not-a-constructor.js | 2 +- test/built-ins/Math/cos/not-a-constructor.js | 2 +- test/built-ins/Math/cosh/not-a-constructor.js | 2 +- test/built-ins/Math/exp/not-a-constructor.js | 2 +- test/built-ins/Math/expm1/not-a-constructor.js | 2 +- test/built-ins/Math/floor/not-a-constructor.js | 2 +- .../built-ins/Math/fround/not-a-constructor.js | 2 +- test/built-ins/Math/hypot/not-a-constructor.js | 2 +- test/built-ins/Math/imul/not-a-constructor.js | 2 +- test/built-ins/Math/log/not-a-constructor.js | 2 +- test/built-ins/Math/log10/not-a-constructor.js | 2 +- test/built-ins/Math/log1p/not-a-constructor.js | 2 +- test/built-ins/Math/log2/not-a-constructor.js | 2 +- test/built-ins/Math/max/not-a-constructor.js | 2 +- test/built-ins/Math/min/not-a-constructor.js | 2 +- test/built-ins/Math/pow/not-a-constructor.js | 2 +- .../built-ins/Math/random/not-a-constructor.js | 2 +- test/built-ins/Math/round/not-a-constructor.js | 2 +- test/built-ins/Math/sign/not-a-constructor.js | 2 +- test/built-ins/Math/sin/not-a-constructor.js | 2 +- test/built-ins/Math/sinh/not-a-constructor.js | 2 +- test/built-ins/Math/sqrt/not-a-constructor.js | 2 +- test/built-ins/Math/tan/not-a-constructor.js | 2 +- test/built-ins/Math/tanh/not-a-constructor.js | 2 +- test/built-ins/Math/trunc/not-a-constructor.js | 2 +- .../Number/isFinite/not-a-constructor.js | 2 +- .../Number/isInteger/not-a-constructor.js | 2 +- .../Number/isNaN/not-a-constructor.js | 2 +- .../Number/isSafeInteger/not-a-constructor.js | 2 +- .../Number/parseFloat/not-a-constructor.js | 2 +- .../Number/parseInt/not-a-constructor.js | 2 +- .../toExponential/not-a-constructor.js | 2 +- .../prototype/toFixed/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../prototype/toPrecision/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../Object/assign/not-a-constructor.js | 2 +- .../Object/create/not-a-constructor.js | 2 +- .../defineProperties/not-a-constructor.js | 2 +- .../Object/defineProperty/not-a-constructor.js | 2 +- .../Object/entries/not-a-constructor.js | 2 +- .../Object/freeze/not-a-constructor.js | 2 +- .../Object/fromEntries/not-a-constructor.js | 2 +- .../not-a-constructor.js | 2 +- .../not-a-constructor.js | 2 +- .../getOwnPropertyNames/not-a-constructor.js | 2 +- .../getOwnPropertySymbols/not-a-constructor.js | 2 +- .../Object/getPrototypeOf/not-a-constructor.js | 2 +- .../Object/hasOwn/not-a-constructor.js | 2 +- test/built-ins/Object/is/not-a-constructor.js | 2 +- .../Object/isExtensible/not-a-constructor.js | 2 +- .../Object/isFrozen/not-a-constructor.js | 2 +- .../Object/isSealed/not-a-constructor.js | 2 +- .../built-ins/Object/keys/not-a-constructor.js | 2 +- .../preventExtensions/not-a-constructor.js | 2 +- .../hasOwnProperty/not-a-constructor.js | 2 +- .../isPrototypeOf/not-a-constructor.js | 2 +- .../propertyIsEnumerable/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../built-ins/Object/seal/not-a-constructor.js | 2 +- .../Object/setPrototypeOf/not-a-constructor.js | 2 +- .../Object/values/not-a-constructor.js | 2 +- .../built-ins/Promise/all/not-a-constructor.js | 2 +- .../Promise/allSettled/not-a-constructor.js | 2 +- .../built-ins/Promise/any/not-a-constructor.js | 2 +- .../create-resolving-functions-reject.js | 2 +- .../create-resolving-functions-resolve.js | 2 +- .../executor-function-not-a-constructor.js | 2 +- .../prototype/catch/not-a-constructor.js | 2 +- .../finally/invokes-then-with-function.js | 4 ++-- .../prototype/finally/not-a-constructor.js | 2 +- .../rejected-observable-then-calls-argument.js | 2 +- .../resolved-observable-then-calls-argument.js | 2 +- .../prototype/then/not-a-constructor.js | 2 +- .../Promise/race/not-a-constructor.js | 2 +- .../Promise/reject/not-a-constructor.js | 2 +- .../Promise/resolve/not-a-constructor.js | 2 +- .../create-target-is-not-a-constructor.js | 2 +- .../Proxy/revocable/not-a-constructor.js | 2 +- .../revocation-function-not-a-constructor.js | 2 +- .../Reflect/apply/not-a-constructor.js | 2 +- .../Reflect/construct/not-a-constructor.js | 2 +- .../defineProperty/not-a-constructor.js | 2 +- .../deleteProperty/not-a-constructor.js | 2 +- .../built-ins/Reflect/get/not-a-constructor.js | 2 +- .../not-a-constructor.js | 2 +- .../getPrototypeOf/not-a-constructor.js | 2 +- .../built-ins/Reflect/has/not-a-constructor.js | 2 +- .../Reflect/isExtensible/not-a-constructor.js | 2 +- .../Reflect/ownKeys/not-a-constructor.js | 2 +- .../preventExtensions/not-a-constructor.js | 2 +- .../built-ins/Reflect/set/not-a-constructor.js | 2 +- .../setPrototypeOf/not-a-constructor.js | 2 +- .../Symbol.match/not-a-constructor.js | 2 +- .../Symbol.matchAll/not-a-constructor.js | 2 +- .../Symbol.replace/not-a-constructor.js | 2 +- .../Symbol.search/not-a-constructor.js | 2 +- .../Symbol.split/not-a-constructor.js | 2 +- .../RegExp/prototype/exec/not-a-constructor.js | 2 +- .../RegExp/prototype/test/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../Symbol.iterator/not-a-constructor.js | 2 +- .../Set/prototype/add/not-a-constructor.js | 2 +- .../Set/prototype/clear/not-a-constructor.js | 2 +- .../Set/prototype/delete/not-a-constructor.js | 2 +- .../prototype/difference/not-a-constructor.js | 4 +--- .../Set/prototype/entries/not-a-constructor.js | 2 +- .../Set/prototype/forEach/not-a-constructor.js | 2 +- .../Set/prototype/has/not-a-constructor.js | 2 +- .../intersection/not-a-constructor.js | 4 +--- .../isDisjointFrom/not-a-constructor.js | 4 +--- .../prototype/isSubsetOf/not-a-constructor.js | 4 +--- .../isSupersetOf/not-a-constructor.js | 4 +--- .../symmetricDifference/not-a-constructor.js | 4 +--- .../Set/prototype/union/not-a-constructor.js | 4 +--- .../Set/prototype/values/not-a-constructor.js | 2 +- .../prototype/evaluate/not-constructor.js | 2 +- .../prototype/slice/not-a-constructor.js | 2 +- .../String/fromCharCode/not-a-constructor.js | 2 +- .../String/fromCodePoint/not-a-constructor.js | 2 +- .../Symbol.iterator/not-a-constructor.js | 2 +- ...x-non-numeric-argument-tointeger-invalid.js | 2 +- .../prototype/at/return-abrupt-from-this.js | 4 ++-- .../prototype/charAt/not-a-constructor.js | 2 +- .../prototype/charCodeAt/not-a-constructor.js | 2 +- .../prototype/codePointAt/not-a-constructor.js | 2 +- .../prototype/concat/not-a-constructor.js | 2 +- .../prototype/endsWith/not-a-constructor.js | 2 +- .../prototype/includes/not-a-constructor.js | 2 +- .../prototype/indexOf/not-a-constructor.js | 2 +- .../isWellFormed/not-a-constructor.js | 2 +- .../isWellFormed/return-abrupt-from-this.js | 4 ++-- .../prototype/lastIndexOf/not-a-constructor.js | 2 +- .../localeCompare/not-a-constructor.js | 2 +- .../prototype/match/not-a-constructor.js | 2 +- .../prototype/matchAll/not-a-constructor.js | 2 +- .../prototype/normalize/not-a-constructor.js | 2 +- .../prototype/padEnd/not-a-constructor.js | 2 +- .../prototype/padStart/not-a-constructor.js | 2 +- .../prototype/repeat/not-a-constructor.js | 2 +- .../prototype/replace/not-a-constructor.js | 2 +- .../prototype/replaceAll/not-a-constructor.js | 2 +- .../prototype/search/not-a-constructor.js | 2 +- .../prototype/slice/not-a-constructor.js | 2 +- .../prototype/split/not-a-constructor.js | 2 +- .../prototype/startsWith/not-a-constructor.js | 2 +- .../prototype/substring/not-a-constructor.js | 2 +- .../toLocaleLowerCase/not-a-constructor.js | 2 +- .../toLocaleUpperCase/not-a-constructor.js | 2 +- .../prototype/toLowerCase/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/toUpperCase/not-a-constructor.js | 2 +- .../toWellFormed/not-a-constructor.js | 2 +- .../toWellFormed/return-abrupt-from-this.js | 4 ++-- .../String/prototype/trim/not-a-constructor.js | 2 +- .../prototype/trimEnd/not-a-constructor.js | 2 +- .../prototype/trimStart/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- test/built-ins/String/raw/not-a-constructor.js | 2 +- test/built-ins/Symbol/for/not-a-constructor.js | 2 +- .../Symbol/keyFor/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/valueOf/not-a-constructor.js | 2 +- .../TypedArray/from/not-a-constructor.js | 2 +- .../TypedArray/of/not-a-constructor.js | 2 +- .../Symbol.iterator/not-a-constructor.js | 2 +- ...x-non-numeric-argument-tointeger-invalid.js | 2 +- .../prototype/at/return-abrupt-from-this.js | 8 ++++---- .../prototype/copyWithin/not-a-constructor.js | 2 +- .../prototype/entries/not-a-constructor.js | 2 +- .../prototype/every/not-a-constructor.js | 2 +- .../prototype/fill/not-a-constructor.js | 2 +- .../prototype/filter/not-a-constructor.js | 2 +- .../prototype/find/not-a-constructor.js | 2 +- .../prototype/findIndex/not-a-constructor.js | 2 +- .../prototype/findLast/not-a-constructor.js | 2 +- .../findLastIndex/not-a-constructor.js | 2 +- .../prototype/forEach/not-a-constructor.js | 2 +- .../prototype/includes/not-a-constructor.js | 2 +- .../prototype/indexOf/not-a-constructor.js | 2 +- .../prototype/join/not-a-constructor.js | 2 +- .../prototype/keys/not-a-constructor.js | 2 +- .../prototype/lastIndexOf/not-a-constructor.js | 2 +- .../prototype/map/not-a-constructor.js | 2 +- .../prototype/reduce/not-a-constructor.js | 2 +- .../prototype/reduceRight/not-a-constructor.js | 2 +- .../prototype/reverse/not-a-constructor.js | 2 +- .../prototype/set/not-a-constructor.js | 2 +- .../prototype/slice/not-a-constructor.js | 2 +- .../prototype/some/not-a-constructor.js | 2 +- .../prototype/sort/not-a-constructor.js | 2 +- .../prototype/subarray/not-a-constructor.js | 2 +- .../toLocaleString/not-a-constructor.js | 2 +- .../prototype/toReversed/not-a-constructor.js | 2 +- .../prototype/toSorted/not-a-constructor.js | 2 +- .../prototype/toString/not-a-constructor.js | 2 +- .../prototype/values/not-a-constructor.js | 2 +- .../Delete/BigInt/indexed-value-ab-strict.js | 8 ++++---- .../key-is-not-canonical-index-strict.js | 2 +- .../BigInt/key-is-not-minus-zero-strict.js | 2 +- .../key-is-not-numeric-index-get-throws.js | 2 +- .../BigInt/key-is-not-numeric-index-strict.js | 2 +- .../BigInt/key-is-out-of-bounds-strict.js | 4 ++-- .../Delete/indexed-value-ab-strict.js | 8 ++++---- .../key-is-not-canonical-index-strict.js | 2 +- .../Delete/key-is-not-minus-zero-strict.js | 2 +- .../key-is-not-numeric-index-get-throws.js | 2 +- .../Delete/key-is-not-numeric-index-strict.js | 2 +- .../Delete/key-is-out-of-bounds-strict.js | 4 ++-- ...upt-from-ordinary-has-parent-hasproperty.js | 2 +- ...upt-from-ordinary-has-parent-hasproperty.js | 2 +- .../key-is-not-numeric-index-set-throws.js | 2 +- .../internals/Set/BigInt/null-tobigint.js | 2 +- .../internals/Set/BigInt/number-tobigint.js | 14 +++++++------- .../Set/BigInt/string-nan-tobigint.js | 2 +- .../internals/Set/BigInt/symbol-tobigint.js | 2 +- .../internals/Set/BigInt/undefined-tobigint.js | 2 +- .../internals/Set/bigint-tonumber.js | 2 +- .../internals/Set/detached-buffer.js | 2 +- .../Set/key-is-not-numeric-index-set-throws.js | 2 +- .../internals/Set/tonumber-value-throws.js | 12 ++++++------ .../prototype/delete/not-a-constructor.js | 2 +- .../WeakMap/prototype/get/not-a-constructor.js | 2 +- .../WeakMap/prototype/has/not-a-constructor.js | 2 +- .../WeakMap/prototype/set/not-a-constructor.js | 2 +- .../prototype/deref/not-a-constructor.js | 2 +- .../WeakSet/prototype/add/not-a-constructor.js | 2 +- .../prototype/delete/not-a-constructor.js | 2 +- .../WeakSet/prototype/has/not-a-constructor.js | 2 +- test/built-ins/decodeURI/not-a-constructor.js | 2 +- .../decodeURIComponent/not-a-constructor.js | 2 +- test/built-ins/encodeURI/not-a-constructor.js | 2 +- .../encodeURIComponent/not-a-constructor.js | 2 +- test/built-ins/eval/not-a-constructor.js | 2 +- test/built-ins/isFinite/not-a-constructor.js | 2 +- test/built-ins/isNaN/not-a-constructor.js | 2 +- test/built-ins/parseFloat/not-a-constructor.js | 2 +- test/built-ins/parseInt/not-a-constructor.js | 2 +- .../constructor-options-collation-invalid.js | 2 +- 491 files changed, 598 insertions(+), 618 deletions(-) diff --git a/test/annexB/built-ins/Date/prototype/getYear/not-a-constructor.js b/test/annexB/built-ins/Date/prototype/getYear/not-a-constructor.js index ad186adb8a..18d998ddfa 100644 --- a/test/annexB/built-ins/Date/prototype/getYear/not-a-constructor.js +++ b/test/annexB/built-ins/Date/prototype/getYear/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getYear(); -}, '`let date = new Date(Date.now()); new date.getYear()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/Date/prototype/setYear/not-a-constructor.js b/test/annexB/built-ins/Date/prototype/setYear/not-a-constructor.js index c851e7d3c7..8d50ab71ed 100644 --- a/test/annexB/built-ins/Date/prototype/setYear/not-a-constructor.js +++ b/test/annexB/built-ins/Date/prototype/setYear/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setYear(); -}, '`let date = new Date(Date.now()); new date.setYear()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/Date/prototype/toGMTString/not-a-constructor.js b/test/annexB/built-ins/Date/prototype/toGMTString/not-a-constructor.js index 47a08c8e91..d895a19d8f 100644 --- a/test/annexB/built-ins/Date/prototype/toGMTString/not-a-constructor.js +++ b/test/annexB/built-ins/Date/prototype/toGMTString/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toGMTString(); -}, '`let date = new Date(Date.now()); new date.toGMTString()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js b/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js index c8a1f789ed..f87d1801f3 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/this-cross-realm-instance.js @@ -15,9 +15,7 @@ assert.throws( TypeError, function () { RegExp.prototype.compile.call(otherRealm_regexp); - }, - "`RegExp.prototype.compile.call(otherRealm_regexp)` throws TypeError" -); + }); assert.throws( other.TypeError, diff --git a/test/annexB/built-ins/RegExp/prototype/compile/this-subclass-instance.js b/test/annexB/built-ins/RegExp/prototype/compile/this-subclass-instance.js index ea44faa4b1..fc9543c0aa 100644 --- a/test/annexB/built-ins/RegExp/prototype/compile/this-subclass-instance.js +++ b/test/annexB/built-ins/RegExp/prototype/compile/this-subclass-instance.js @@ -12,14 +12,10 @@ assert.throws( TypeError, function () { subclass_regexp.compile(); - }, - "`subclass_regexp.compile()` throws TypeError" -); + }); assert.throws( TypeError, function () { RegExp.prototype.compile.call(subclass_regexp); - }, - "`RegExp.prototype.compile.call(subclass_regexp)` throws TypeError" -); + }); diff --git a/test/annexB/built-ins/String/prototype/anchor/not-a-constructor.js b/test/annexB/built-ins/String/prototype/anchor/not-a-constructor.js index cdc1dd9ecf..5e785c2761 100644 --- a/test/annexB/built-ins/String/prototype/anchor/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/anchor/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.anchor(); -}, '`new String.prototype.anchor()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/big/not-a-constructor.js b/test/annexB/built-ins/String/prototype/big/not-a-constructor.js index 9cfd4f22dd..b86bae1176 100644 --- a/test/annexB/built-ins/String/prototype/big/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/big/not-a-constructor.js @@ -24,5 +24,5 @@ assert.sameValue(isConstructor(String.prototype.big), false, 'isConstructor(Stri assert.throws(TypeError, () => { new String.prototype.big(); -}, '`new String.prototype.big()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/blink/not-a-constructor.js b/test/annexB/built-ins/String/prototype/blink/not-a-constructor.js index 63ab9eb57b..57a256d9ba 100644 --- a/test/annexB/built-ins/String/prototype/blink/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/blink/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.blink(); -}, '`new String.prototype.blink()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/bold/not-a-constructor.js b/test/annexB/built-ins/String/prototype/bold/not-a-constructor.js index 416ea28d9d..9b4787ee62 100644 --- a/test/annexB/built-ins/String/prototype/bold/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/bold/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.bold(); -}, '`new String.prototype.bold()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/fixed/not-a-constructor.js b/test/annexB/built-ins/String/prototype/fixed/not-a-constructor.js index 8d08d28a1d..763d09ee2c 100644 --- a/test/annexB/built-ins/String/prototype/fixed/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/fixed/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.fixed(); -}, '`new String.prototype.fixed()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/fontcolor/not-a-constructor.js b/test/annexB/built-ins/String/prototype/fontcolor/not-a-constructor.js index 2805576cf5..b96b61287f 100644 --- a/test/annexB/built-ins/String/prototype/fontcolor/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/fontcolor/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.fontcolor(); -}, '`new String.prototype.fontcolor()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/fontsize/not-a-constructor.js b/test/annexB/built-ins/String/prototype/fontsize/not-a-constructor.js index 08a7cc679d..618ce3b65c 100644 --- a/test/annexB/built-ins/String/prototype/fontsize/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/fontsize/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.fontsize(); -}, '`new String.prototype.fontsize()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/italics/not-a-constructor.js b/test/annexB/built-ins/String/prototype/italics/not-a-constructor.js index 226dfa44f7..928dc0259e 100644 --- a/test/annexB/built-ins/String/prototype/italics/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/italics/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.italics(); -}, '`new String.prototype.italics()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/link/not-a-constructor.js b/test/annexB/built-ins/String/prototype/link/not-a-constructor.js index 652420dd97..002f607e26 100644 --- a/test/annexB/built-ins/String/prototype/link/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/link/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.link(); -}, '`new String.prototype.link()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/small/not-a-constructor.js b/test/annexB/built-ins/String/prototype/small/not-a-constructor.js index ef6ed245a5..a69d2d5140 100644 --- a/test/annexB/built-ins/String/prototype/small/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/small/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.small(); -}, '`new String.prototype.small()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/strike/not-a-constructor.js b/test/annexB/built-ins/String/prototype/strike/not-a-constructor.js index 703f7a6370..2a24ad8654 100644 --- a/test/annexB/built-ins/String/prototype/strike/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/strike/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.strike(); -}, '`new String.prototype.strike()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/sub/not-a-constructor.js b/test/annexB/built-ins/String/prototype/sub/not-a-constructor.js index 9e61e06996..92cd7a05bf 100644 --- a/test/annexB/built-ins/String/prototype/sub/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/sub/not-a-constructor.js @@ -24,5 +24,5 @@ assert.sameValue(isConstructor(String.prototype.sub), false, 'isConstructor(Stri assert.throws(TypeError, () => { new String.prototype.sub(); -}, '`new String.prototype.sub()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/substr/not-a-constructor.js b/test/annexB/built-ins/String/prototype/substr/not-a-constructor.js index 55ecf40465..f29112c117 100644 --- a/test/annexB/built-ins/String/prototype/substr/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/substr/not-a-constructor.js @@ -28,5 +28,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.substr(); -}, '`new String.prototype.substr()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/String/prototype/sup/not-a-constructor.js b/test/annexB/built-ins/String/prototype/sup/not-a-constructor.js index 5a2faa965d..df876a4b43 100644 --- a/test/annexB/built-ins/String/prototype/sup/not-a-constructor.js +++ b/test/annexB/built-ins/String/prototype/sup/not-a-constructor.js @@ -24,5 +24,5 @@ assert.sameValue(isConstructor(String.prototype.sup), false, 'isConstructor(Stri assert.throws(TypeError, () => { new String.prototype.sup(); -}, '`new String.prototype.sup()` throws TypeError'); +}); diff --git a/test/annexB/built-ins/escape/not-a-constructor.js b/test/annexB/built-ins/escape/not-a-constructor.js index 3389cc0191..a787c9c20a 100644 --- a/test/annexB/built-ins/escape/not-a-constructor.js +++ b/test/annexB/built-ins/escape/not-a-constructor.js @@ -24,5 +24,5 @@ assert.sameValue(isConstructor(escape), false, 'isConstructor(escape) must retur assert.throws(TypeError, () => { new escape(''); -}, '`new escape(\'\')` throws TypeError'); +}); diff --git a/test/annexB/built-ins/unescape/not-a-constructor.js b/test/annexB/built-ins/unescape/not-a-constructor.js index fb9070aaaa..e5117bc383 100644 --- a/test/annexB/built-ins/unescape/not-a-constructor.js +++ b/test/annexB/built-ins/unescape/not-a-constructor.js @@ -24,5 +24,5 @@ assert.sameValue(isConstructor(unescape), false, 'isConstructor(unescape) must r assert.throws(TypeError, () => { new unescape(''); -}, '`new unescape(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/Symbol.iterator/not-a-constructor.js b/test/built-ins/Array/prototype/Symbol.iterator/not-a-constructor.js index 50cce60821..6a2ea37938 100644 --- a/test/built-ins/Array/prototype/Symbol.iterator/not-a-constructor.js +++ b/test/built-ins/Array/prototype/Symbol.iterator/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype[Symbol.iterator](); -}, '`new Array.prototype[Symbol.iterator]()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js b/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js index d781d70db7..f15909ae88 100644 --- a/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js +++ b/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.copyWithin(); -}, '`new Array.prototype.copyWithin()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/entries/not-a-constructor.js b/test/built-ins/Array/prototype/entries/not-a-constructor.js index abdc387e34..28baea195e 100644 --- a/test/built-ins/Array/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Array/prototype/entries/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.entries(); -}, '`new Array.prototype.entries()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/every/not-a-constructor.js b/test/built-ins/Array/prototype/every/not-a-constructor.js index 87d6ee5d07..32f4141c27 100644 --- a/test/built-ins/Array/prototype/every/not-a-constructor.js +++ b/test/built-ins/Array/prototype/every/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.every(() => {}); -}, '`new Array.prototype.every(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/fill/not-a-constructor.js b/test/built-ins/Array/prototype/fill/not-a-constructor.js index 83b5c2ed7e..603e5082dc 100644 --- a/test/built-ins/Array/prototype/fill/not-a-constructor.js +++ b/test/built-ins/Array/prototype/fill/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.fill), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.fill(); -}, '`new Array.prototype.fill()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/filter/not-a-constructor.js b/test/built-ins/Array/prototype/filter/not-a-constructor.js index 55e3b3b1ae..ebbddeacf3 100644 --- a/test/built-ins/Array/prototype/filter/not-a-constructor.js +++ b/test/built-ins/Array/prototype/filter/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.filter(() => {}); -}, '`new Array.prototype.filter(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/find/not-a-constructor.js b/test/built-ins/Array/prototype/find/not-a-constructor.js index 13f3020a0a..05fea5479b 100644 --- a/test/built-ins/Array/prototype/find/not-a-constructor.js +++ b/test/built-ins/Array/prototype/find/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.find), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.find(() => {}); -}, '`new Array.prototype.find(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/findIndex/not-a-constructor.js b/test/built-ins/Array/prototype/findIndex/not-a-constructor.js index a8b945dbee..f5ebe2bc45 100644 --- a/test/built-ins/Array/prototype/findIndex/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findIndex/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.findIndex(() => {}); -}, '`new Array.prototype.findIndex(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/findLast/not-a-constructor.js b/test/built-ins/Array/prototype/findLast/not-a-constructor.js index ce8938f952..90ccc48372 100644 --- a/test/built-ins/Array/prototype/findLast/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findLast/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.findLast), false, 'isConstructor( assert.throws(TypeError, () => { new Array.prototype.findLast(() => {}); -}, '`new Array.prototype.findLast(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js b/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js index 8420624fdd..2c990388bc 100644 --- a/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.findLastIndex(() => {}); -}, '`new Array.prototype.findLastIndex(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/flat/not-a-constructor.js b/test/built-ins/Array/prototype/flat/not-a-constructor.js index 4ac281a444..7772e16a1f 100644 --- a/test/built-ins/Array/prototype/flat/not-a-constructor.js +++ b/test/built-ins/Array/prototype/flat/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.flat), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.flat(); -}, '`new Array.prototype.flat()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/flatMap/not-a-constructor.js b/test/built-ins/Array/prototype/flatMap/not-a-constructor.js index 9ad50a0e2a..1b8e886031 100644 --- a/test/built-ins/Array/prototype/flatMap/not-a-constructor.js +++ b/test/built-ins/Array/prototype/flatMap/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.flatMap(() => {}); -}, '`new Array.prototype.flatMap(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/forEach/not-a-constructor.js b/test/built-ins/Array/prototype/forEach/not-a-constructor.js index 9721d78bb7..48ae8b16ad 100644 --- a/test/built-ins/Array/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Array/prototype/forEach/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.forEach(() => {}); -}, '`new Array.prototype.forEach(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/includes/not-a-constructor.js b/test/built-ins/Array/prototype/includes/not-a-constructor.js index 81aca092d0..bd1bef8143 100644 --- a/test/built-ins/Array/prototype/includes/not-a-constructor.js +++ b/test/built-ins/Array/prototype/includes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.includes(1); -}, '`new Array.prototype.includes(1)` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/indexOf/not-a-constructor.js b/test/built-ins/Array/prototype/indexOf/not-a-constructor.js index ce1a8d019d..22b69a8a7e 100644 --- a/test/built-ins/Array/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/Array/prototype/indexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.indexOf(); -}, '`new Array.prototype.indexOf()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/join/not-a-constructor.js b/test/built-ins/Array/prototype/join/not-a-constructor.js index 33b3a4d5c2..2e35936bb0 100644 --- a/test/built-ins/Array/prototype/join/not-a-constructor.js +++ b/test/built-ins/Array/prototype/join/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.join), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.join(); -}, '`new Array.prototype.join()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/keys/not-a-constructor.js b/test/built-ins/Array/prototype/keys/not-a-constructor.js index 6b8544765f..1eed3f7d60 100644 --- a/test/built-ins/Array/prototype/keys/not-a-constructor.js +++ b/test/built-ins/Array/prototype/keys/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.keys), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.keys(); -}, '`new Array.prototype.keys()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js b/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js index dc755f9eb0..083dcbfa91 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.lastIndexOf(); -}, '`new Array.prototype.lastIndexOf()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/map/not-a-constructor.js b/test/built-ins/Array/prototype/map/not-a-constructor.js index d521b09709..a858c3f1f9 100644 --- a/test/built-ins/Array/prototype/map/not-a-constructor.js +++ b/test/built-ins/Array/prototype/map/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.map), false, 'isConstructor(Array assert.throws(TypeError, () => { new Array.prototype.map(() => {}); -}, '`new Array.prototype.map(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/pop/not-a-constructor.js b/test/built-ins/Array/prototype/pop/not-a-constructor.js index dcaccf6280..751b7335d4 100644 --- a/test/built-ins/Array/prototype/pop/not-a-constructor.js +++ b/test/built-ins/Array/prototype/pop/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.pop), false, 'isConstructor(Array assert.throws(TypeError, () => { new Array.prototype.pop(); -}, '`new Array.prototype.pop()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/push/not-a-constructor.js b/test/built-ins/Array/prototype/push/not-a-constructor.js index e79b243672..29cfac23c9 100644 --- a/test/built-ins/Array/prototype/push/not-a-constructor.js +++ b/test/built-ins/Array/prototype/push/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.push), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.push(); -}, '`new Array.prototype.push()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/reduce/not-a-constructor.js b/test/built-ins/Array/prototype/reduce/not-a-constructor.js index 1f425cf1f2..9a67477142 100644 --- a/test/built-ins/Array/prototype/reduce/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reduce/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.reduce(() => {}, []); -}, '`new Array.prototype.reduce(() => {}, [])` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js b/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js index 2d08d721a3..cd28d43aef 100644 --- a/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.reduceRight(() => {}, []); -}, '`new Array.prototype.reduceRight(() => {}, [])` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/reverse/not-a-constructor.js b/test/built-ins/Array/prototype/reverse/not-a-constructor.js index 7d48bc1588..3178d93588 100644 --- a/test/built-ins/Array/prototype/reverse/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reverse/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.reverse(); -}, '`new Array.prototype.reverse()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/shift/not-a-constructor.js b/test/built-ins/Array/prototype/shift/not-a-constructor.js index 5157f52dcf..248d19751f 100644 --- a/test/built-ins/Array/prototype/shift/not-a-constructor.js +++ b/test/built-ins/Array/prototype/shift/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.shift(); -}, '`new Array.prototype.shift()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/slice/not-a-constructor.js b/test/built-ins/Array/prototype/slice/not-a-constructor.js index dbd79446df..193e9481be 100644 --- a/test/built-ins/Array/prototype/slice/not-a-constructor.js +++ b/test/built-ins/Array/prototype/slice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.slice(); -}, '`new Array.prototype.slice()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/some/not-a-constructor.js b/test/built-ins/Array/prototype/some/not-a-constructor.js index a06b023624..ca58ca6f8f 100644 --- a/test/built-ins/Array/prototype/some/not-a-constructor.js +++ b/test/built-ins/Array/prototype/some/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.some), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.some(() => {}); -}, '`new Array.prototype.some(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/sort/not-a-constructor.js b/test/built-ins/Array/prototype/sort/not-a-constructor.js index 6d2ae6d896..1b33631ca9 100644 --- a/test/built-ins/Array/prototype/sort/not-a-constructor.js +++ b/test/built-ins/Array/prototype/sort/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Array.prototype.sort), false, 'isConstructor(Arra assert.throws(TypeError, () => { new Array.prototype.sort(); -}, '`new Array.prototype.sort()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/splice/not-a-constructor.js b/test/built-ins/Array/prototype/splice/not-a-constructor.js index 4a4ddad154..3ba0f21523 100644 --- a/test/built-ins/Array/prototype/splice/not-a-constructor.js +++ b/test/built-ins/Array/prototype/splice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.splice(); -}, '`new Array.prototype.splice()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js index 740ad5cfd5..002d1c4f20 100644 --- a/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toLocaleString(); -}, '`new Array.prototype.toLocaleString()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toReversed/not-a-constructor.js b/test/built-ins/Array/prototype/toReversed/not-a-constructor.js index 6cfabfe6ff..c4a4d549ba 100644 --- a/test/built-ins/Array/prototype/toReversed/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toReversed/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toReversed(); -}, '`new Array.prototype.toReversed()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toReversed/this-value-nullish.js b/test/built-ins/Array/prototype/toReversed/this-value-nullish.js index b81e99f592..d83e918d6a 100644 --- a/test/built-ins/Array/prototype/toReversed/this-value-nullish.js +++ b/test/built-ins/Array/prototype/toReversed/this-value-nullish.js @@ -15,8 +15,8 @@ features: [change-array-by-copy] assert.throws(TypeError, () => { Array.prototype.toReversed.call(null); -}, '`Array.prototype.toReversed.call(null)` throws TypeError'); +}); assert.throws(TypeError, () => { Array.prototype.toReversed.call(undefined); -}, '`Array.prototype.toReversed.call(undefined)` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toSorted/not-a-constructor.js b/test/built-ins/Array/prototype/toSorted/not-a-constructor.js index 8865d18166..9d5ae4f15f 100644 --- a/test/built-ins/Array/prototype/toSorted/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toSorted/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toSorted(); -}, '`new Array.prototype.toSorted()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toSorted/this-value-nullish.js b/test/built-ins/Array/prototype/toSorted/this-value-nullish.js index 6be9d4cb4f..58eedbb58a 100644 --- a/test/built-ins/Array/prototype/toSorted/this-value-nullish.js +++ b/test/built-ins/Array/prototype/toSorted/this-value-nullish.js @@ -15,8 +15,8 @@ features: [change-array-by-copy] assert.throws(TypeError, () => { Array.prototype.toSorted.call(null); -}, '`Array.prototype.toSorted.call(null)` throws TypeError'); +}); assert.throws(TypeError, () => { Array.prototype.toSorted.call(undefined); -}, '`Array.prototype.toSorted.call(undefined)` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toSpliced/not-a-constructor.js b/test/built-ins/Array/prototype/toSpliced/not-a-constructor.js index b702fa27e3..5a439a5315 100644 --- a/test/built-ins/Array/prototype/toSpliced/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toSpliced/not-a-constructor.js @@ -29,4 +29,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toSpliced(); -}, '`new Array.prototype.toSpliced()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/toString/not-a-constructor.js b/test/built-ins/Array/prototype/toString/not-a-constructor.js index bf6ba19ca9..dfbe97e457 100644 --- a/test/built-ins/Array/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toString(); -}, '`new Array.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/unshift/not-a-constructor.js b/test/built-ins/Array/prototype/unshift/not-a-constructor.js index a8b21f8104..3b24c018eb 100644 --- a/test/built-ins/Array/prototype/unshift/not-a-constructor.js +++ b/test/built-ins/Array/prototype/unshift/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.unshift(); -}, '`new Array.prototype.unshift()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/values/not-a-constructor.js b/test/built-ins/Array/prototype/values/not-a-constructor.js index 35bf45aa8c..8cb20e1b86 100644 --- a/test/built-ins/Array/prototype/values/not-a-constructor.js +++ b/test/built-ins/Array/prototype/values/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.values(); -}, '`new Array.prototype.values()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/with/not-a-constructor.js b/test/built-ins/Array/prototype/with/not-a-constructor.js index 5c8d8ab652..275c35122a 100644 --- a/test/built-ins/Array/prototype/with/not-a-constructor.js +++ b/test/built-ins/Array/prototype/with/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.with(); -}, '`new Array.prototype.with()` throws TypeError'); +}); diff --git a/test/built-ins/Array/prototype/with/this-value-nullish.js b/test/built-ins/Array/prototype/with/this-value-nullish.js index d71deb31e6..dbdb09df29 100644 --- a/test/built-ins/Array/prototype/with/this-value-nullish.js +++ b/test/built-ins/Array/prototype/with/this-value-nullish.js @@ -15,8 +15,8 @@ features: [change-array-by-copy] assert.throws(TypeError, () => { Array.prototype.with.call(null, 0, 0); -}, '`Array.prototype.with.call(null, 0, 0)` throws TypeError'); +}); assert.throws(TypeError, () => { Array.prototype.with.call(undefined, 0, 0); -}, '`Array.prototype.with.call(undefined, 0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/ArrayBuffer/isView/not-a-constructor.js b/test/built-ins/ArrayBuffer/isView/not-a-constructor.js index 9d65b9f0d9..1c2405287e 100644 --- a/test/built-ins/ArrayBuffer/isView/not-a-constructor.js +++ b/test/built-ins/ArrayBuffer/isView/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(ArrayBuffer.isView), false, 'isConstructor(ArrayB assert.throws(TypeError, () => { new ArrayBuffer.isView(); -}, '`new ArrayBuffer.isView()` throws TypeError'); +}); diff --git a/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js b/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js index 9ea8c41161..a3eb5d34ef 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let ab = new ArrayBuffer(); new ab.slice(); -}, '`let ab = new ArrayBuffer(); new ab.slice()` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/add/bad-range.js b/test/built-ins/Atomics/add/bad-range.js index d5ad1d732c..e01d96c791 100644 --- a/test/built-ins/Atomics/add/bad-range.js +++ b/test/built-ins/Atomics/add/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.add(view, IdxGen(view), 10); - }, '`Atomics.add(view, IdxGen(view), 10)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/add/bigint/bad-range.js b/test/built-ins/Atomics/add/bigint/bad-range.js index 979c3f3ef3..172fb9f50a 100644 --- a/test/built-ins/Atomics/add/bigint/bad-range.js +++ b/test/built-ins/Atomics/add/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.add(view, IdxGen(view), 10n); - }, '`Atomics.add(view, IdxGen(view), 10n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/add/non-views.js b/test/built-ins/Atomics/add/non-views.js index cf00d62db7..6921494c2b 100644 --- a/test/built-ins/Atomics/add/non-views.js +++ b/test/built-ins/Atomics/add/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.add(view, 0, 0); - }, '`Atomics.add(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/add/not-a-constructor.js b/test/built-ins/Atomics/add/not-a-constructor.js index 7e298c3dac..9acacd772d 100644 --- a/test/built-ins/Atomics/add/not-a-constructor.js +++ b/test/built-ins/Atomics/add/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.add), false, 'isConstructor(Atomics.add) assert.throws(TypeError, () => { new Atomics.add(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.add(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/and/bad-range.js b/test/built-ins/Atomics/and/bad-range.js index bf41aa26d8..811e394172 100644 --- a/test/built-ins/Atomics/and/bad-range.js +++ b/test/built-ins/Atomics/and/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.and(view, IdxGen(view), 10); - }, '`Atomics.and(view, IdxGen(view), 10)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/and/bigint/bad-range.js b/test/built-ins/Atomics/and/bigint/bad-range.js index fc1f190fbf..e1876ee7b9 100644 --- a/test/built-ins/Atomics/and/bigint/bad-range.js +++ b/test/built-ins/Atomics/and/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.and(view, IdxGen(view), 10n); - }, '`Atomics.and(view, IdxGen(view), 10n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/and/non-views.js b/test/built-ins/Atomics/and/non-views.js index 5915720cdc..237d44695b 100644 --- a/test/built-ins/Atomics/and/non-views.js +++ b/test/built-ins/Atomics/and/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.and(view, 0, 0); - }, '`Atomics.and(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/and/not-a-constructor.js b/test/built-ins/Atomics/and/not-a-constructor.js index 2d4a87482b..cee2c1427b 100644 --- a/test/built-ins/Atomics/and/not-a-constructor.js +++ b/test/built-ins/Atomics/and/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.and), false, 'isConstructor(Atomics.and) assert.throws(TypeError, () => { new Atomics.and(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.and(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/compareExchange/bad-range.js b/test/built-ins/Atomics/compareExchange/bad-range.js index 04fc7bda26..7fbd13a384 100644 --- a/test/built-ins/Atomics/compareExchange/bad-range.js +++ b/test/built-ins/Atomics/compareExchange/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.compareExchange(view, IdxGen(view), 10, 0); - }, '`Atomics.compareExchange(view, IdxGen(view), 10, 0)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/compareExchange/bigint/bad-range.js b/test/built-ins/Atomics/compareExchange/bigint/bad-range.js index 444c7e62b1..1f7ec929ff 100644 --- a/test/built-ins/Atomics/compareExchange/bigint/bad-range.js +++ b/test/built-ins/Atomics/compareExchange/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.compareExchange(view, IdxGen(view), 10, 0n); - }, '`Atomics.compareExchange(view, IdxGen(view), 10, 0n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/compareExchange/non-views.js b/test/built-ins/Atomics/compareExchange/non-views.js index b4a09d43aa..a11e5e83d7 100644 --- a/test/built-ins/Atomics/compareExchange/non-views.js +++ b/test/built-ins/Atomics/compareExchange/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.compareExchange(view, 0, 0, 0); - }, '`Atomics.compareExchange(view, 0, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/compareExchange/not-a-constructor.js b/test/built-ins/Atomics/compareExchange/not-a-constructor.js index ca44ab3936..b2d33556e5 100644 --- a/test/built-ins/Atomics/compareExchange/not-a-constructor.js +++ b/test/built-ins/Atomics/compareExchange/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/exchange/bad-range.js b/test/built-ins/Atomics/exchange/bad-range.js index 0c5294e99a..a7f47b0bf2 100644 --- a/test/built-ins/Atomics/exchange/bad-range.js +++ b/test/built-ins/Atomics/exchange/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.exchange(view, IdxGen(view), 10, 0); - }, '`Atomics.exchange(view, IdxGen(view), 10, 0)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/exchange/bigint/bad-range.js b/test/built-ins/Atomics/exchange/bigint/bad-range.js index 9fccbadf8b..8fbf098549 100644 --- a/test/built-ins/Atomics/exchange/bigint/bad-range.js +++ b/test/built-ins/Atomics/exchange/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.exchange(view, IdxGen(view), 10n, 0n); - }, '`Atomics.exchange(view, IdxGen(view), 10n, 0n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/exchange/non-views.js b/test/built-ins/Atomics/exchange/non-views.js index 4c8cdc7275..b1bbdbdb9b 100644 --- a/test/built-ins/Atomics/exchange/non-views.js +++ b/test/built-ins/Atomics/exchange/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.exchange(view, 0, 0); - }, '`Atomics.exchange(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/exchange/not-a-constructor.js b/test/built-ins/Atomics/exchange/not-a-constructor.js index bc8e7ec026..bce1b8a066 100644 --- a/test/built-ins/Atomics/exchange/not-a-constructor.js +++ b/test/built-ins/Atomics/exchange/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.exchange), false, 'isConstructor(Atomics. assert.throws(TypeError, () => { new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/isLockFree/not-a-constructor.js b/test/built-ins/Atomics/isLockFree/not-a-constructor.js index 41c832baf8..0fa83756c6 100644 --- a/test/built-ins/Atomics/isLockFree/not-a-constructor.js +++ b/test/built-ins/Atomics/isLockFree/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.isLockFree), false, 'isConstructor(Atomic assert.throws(TypeError, () => { new Atomics.isLockFree(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.isLockFree(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/load/bad-range.js b/test/built-ins/Atomics/load/bad-range.js index 77e47f95ca..3a3fecbf7a 100644 --- a/test/built-ins/Atomics/load/bad-range.js +++ b/test/built-ins/Atomics/load/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.load(view, IdxGen(view)); - }, '`Atomics.load(view, IdxGen(view))` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/load/bigint/bad-range.js b/test/built-ins/Atomics/load/bigint/bad-range.js index 9fa24122af..beec25b810 100644 --- a/test/built-ins/Atomics/load/bigint/bad-range.js +++ b/test/built-ins/Atomics/load/bigint/bad-range.js @@ -16,6 +16,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.load(view, IdxGen(view)); - }, '`Atomics.load(view, IdxGen(view))` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/load/non-views.js b/test/built-ins/Atomics/load/non-views.js index 98921fc7c9..0809014e42 100644 --- a/test/built-ins/Atomics/load/non-views.js +++ b/test/built-ins/Atomics/load/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.load(view, 0); - }, '`Atomics.load(view, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/load/not-a-constructor.js b/test/built-ins/Atomics/load/not-a-constructor.js index 5f4b3235af..fde9d9b33f 100644 --- a/test/built-ins/Atomics/load/not-a-constructor.js +++ b/test/built-ins/Atomics/load/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.load), false, 'isConstructor(Atomics.load assert.throws(TypeError, () => { new Atomics.load(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.load(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/bad-range.js b/test/built-ins/Atomics/notify/bad-range.js index bafa2b247e..5ec4e3a2dd 100644 --- a/test/built-ins/Atomics/notify/bad-range.js +++ b/test/built-ins/Atomics/notify/bad-range.js @@ -22,5 +22,5 @@ const i32a = new Int32Array( testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.notify(i32a, IdxGen(i32a), 0); - }, '`Atomics.notify(i32a, IdxGen(i32a), 0)` throws RangeError'); + }); }); diff --git a/test/built-ins/Atomics/notify/bigint/bad-range.js b/test/built-ins/Atomics/notify/bigint/bad-range.js index fbab7c02a7..2b949696b7 100644 --- a/test/built-ins/Atomics/notify/bigint/bad-range.js +++ b/test/built-ins/Atomics/notify/bigint/bad-range.js @@ -22,5 +22,5 @@ const i64a = new BigInt64Array( testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.notify(i64a, IdxGen(i64a), 0); - }, '`Atomics.notify(i64a, IdxGen(i64a), 0)` throws RangeError'); + }); }); diff --git a/test/built-ins/Atomics/notify/bigint/non-bigint64-typedarray-throws.js b/test/built-ins/Atomics/notify/bigint/non-bigint64-typedarray-throws.js index 78dfbdd67b..c7dca0a84e 100644 --- a/test/built-ins/Atomics/notify/bigint/non-bigint64-typedarray-throws.js +++ b/test/built-ins/Atomics/notify/bigint/non-bigint64-typedarray-throws.js @@ -27,8 +27,8 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.wait(i64a, 0, 0); -}, '`Atomics.wait(i64a, 0, 0)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i64a, poisoned, poisoned); -}, '`Atomics.wait(i64a, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-count-evaluation-throws.js b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-count-evaluation-throws.js index 806ac14c1e..3b01a0ec25 100644 --- a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-count-evaluation-throws.js +++ b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-count-evaluation-throws.js @@ -30,4 +30,4 @@ const poisoned = { assert.throws(Test262Error, function() { Atomics.notify(i64a, poisoned, 0); -}, '`Atomics.notify(i64a, poisoned, 0)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-index-evaluation-throws.js b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-index-evaluation-throws.js index 8eec825514..5dc64a16ab 100644 --- a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-index-evaluation-throws.js +++ b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-index-evaluation-throws.js @@ -27,6 +27,6 @@ const poisoned = { assert.throws(Test262Error, function() { Atomics.notify(i64a, 0, poisoned); -}, '`Atomics.notify(i64a, 0, poisoned)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-non-shared-int-views-throws.js b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-non-shared-int-views-throws.js index 0e882dbcaa..7737d8148b 100644 --- a/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-non-shared-int-views-throws.js +++ b/test/built-ins/Atomics/notify/bigint/non-shared-bufferdata-non-shared-int-views-throws.js @@ -18,4 +18,4 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.notify(new BigUint64Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new BigUint64Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/bigint/null-bufferdata-throws.js b/test/built-ins/Atomics/notify/bigint/null-bufferdata-throws.js index f47804cc3c..754f16cc19 100644 --- a/test/built-ins/Atomics/notify/bigint/null-bufferdata-throws.js +++ b/test/built-ins/Atomics/notify/bigint/null-bufferdata-throws.js @@ -33,4 +33,4 @@ try { assert.throws(TypeError, function() { Atomics.notify(i64a, poisoned, poisoned); -}, '`Atomics.notify(i64a, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/count-symbol-throws.js b/test/built-ins/Atomics/notify/count-symbol-throws.js index 1c95848ae7..e4333693ea 100644 --- a/test/built-ins/Atomics/notify/count-symbol-throws.js +++ b/test/built-ins/Atomics/notify/count-symbol-throws.js @@ -23,4 +23,4 @@ const i32a = new Int32Array( assert.throws(TypeError, function() { Atomics.notify(i32a, 0, Symbol()); -}, '`Atomics.notify(i32a, 0, Symbol())` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/count-tointeger-throws-then-wake-throws.js b/test/built-ins/Atomics/notify/count-tointeger-throws-then-wake-throws.js index febcae5411..f279101517 100644 --- a/test/built-ins/Atomics/notify/count-tointeger-throws-then-wake-throws.js +++ b/test/built-ins/Atomics/notify/count-tointeger-throws-then-wake-throws.js @@ -29,4 +29,4 @@ const poisoned = { assert.throws(Test262Error, function() { Atomics.notify(i32a, 0, poisoned); -}, '`Atomics.notify(i32a, 0, poisoned)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/notify/negative-index-throws.js b/test/built-ins/Atomics/notify/negative-index-throws.js index 55a7816f3f..13994c1138 100644 --- a/test/built-ins/Atomics/notify/negative-index-throws.js +++ b/test/built-ins/Atomics/notify/negative-index-throws.js @@ -28,13 +28,13 @@ const poisoned = { assert.throws(RangeError, function() { Atomics.notify(i32a, -Infinity, poisoned); -}, '`Atomics.notify(i32a, -Infinity, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.notify(i32a, -7.999, poisoned); -}, '`Atomics.notify(i32a, -7.999, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.notify(i32a, -1, poisoned); -}, '`Atomics.notify(i32a, -1, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.notify(i32a, -300, poisoned); -}, '`Atomics.notify(i32a, -300, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/notify/non-int32-typedarray-throws.js b/test/built-ins/Atomics/notify/non-int32-typedarray-throws.js index 9d701c30d9..a0dabdfefd 100644 --- a/test/built-ins/Atomics/notify/non-int32-typedarray-throws.js +++ b/test/built-ins/Atomics/notify/non-int32-typedarray-throws.js @@ -26,14 +26,14 @@ assert.throws(TypeError, function() { new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Float64Array( new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Float32Array( new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Float32Array( new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); if (typeof Float16Array !== 'undefined') { assert.throws(TypeError, function() { @@ -41,7 +41,7 @@ if (typeof Float16Array !== 'undefined') { new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned); - }, '`const view = new Float16Array( new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); + }); } assert.throws(TypeError, function() { @@ -49,39 +49,39 @@ assert.throws(TypeError, function() { new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Int16Array( new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Int8Array( new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Int8Array( new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint32Array( new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(new Uint32Array(), poisoned, poisoned); -}, '`const view = new Uint32Array( new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4) ); Atomics.notify(new Uint32Array(), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint16Array( new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Uint16Array( new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint8Array( new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Uint8Array( new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint8ClampedArray( new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned); -}, '`const view = new Uint8ClampedArray( new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT) ); Atomics.notify(view, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/non-shared-bufferdata-count-evaluation-throws.js b/test/built-ins/Atomics/notify/non-shared-bufferdata-count-evaluation-throws.js index 0656f5a6b6..db0e299607 100644 --- a/test/built-ins/Atomics/notify/non-shared-bufferdata-count-evaluation-throws.js +++ b/test/built-ins/Atomics/notify/non-shared-bufferdata-count-evaluation-throws.js @@ -31,6 +31,6 @@ const poisoned = { assert.throws(Test262Error, function() { Atomics.notify(i32a, 0, poisoned); -}, '`Atomics.notify(i32a, 0, poisoned)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/notify/non-shared-bufferdata-index-evaluation-throws.js b/test/built-ins/Atomics/notify/non-shared-bufferdata-index-evaluation-throws.js index 8c2c334f6b..3e0fa07df8 100644 --- a/test/built-ins/Atomics/notify/non-shared-bufferdata-index-evaluation-throws.js +++ b/test/built-ins/Atomics/notify/non-shared-bufferdata-index-evaluation-throws.js @@ -27,6 +27,6 @@ const poisoned = { assert.throws(Test262Error, function() { Atomics.notify(i32a, poisoned, 0); -}, '`Atomics.notify(i32a, poisoned, 0)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/notify/non-shared-bufferdata-non-shared-int-views-throws.js b/test/built-ins/Atomics/notify/non-shared-bufferdata-non-shared-int-views-throws.js index 458aaa0517..51e9ba2868 100644 --- a/test/built-ins/Atomics/notify/non-shared-bufferdata-non-shared-int-views-throws.js +++ b/test/built-ins/Atomics/notify/non-shared-bufferdata-non-shared-int-views-throws.js @@ -18,24 +18,24 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.notify(new Int16Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Int16Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Int8Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Int8Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint32Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Uint32Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint16Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Uint16Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint8Array(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Uint8Array(nonsab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint8ClampedArray(nonsab), poisoned, poisoned); -}, '`Atomics.notify(new Uint8ClampedArray(nonsab), poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/non-shared-int-views.js b/test/built-ins/Atomics/notify/non-shared-int-views.js index ae22d77be5..6797a7b529 100644 --- a/test/built-ins/Atomics/notify/non-shared-int-views.js +++ b/test/built-ins/Atomics/notify/non-shared-int-views.js @@ -18,24 +18,24 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.notify(new Int16Array(sab), poisoned, poisoned); -}, '`Atomics.notify(new Int16Array(sab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Int8Array(sab), poisoned, poisoned); -}, '`Atomics.notify(new Int8Array(sab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint32Array(sab), poisoned, poisoned); -}, '`Atomics.notify(new Uint32Array(sab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint16Array(sab), poisoned, poisoned); -}, '`Atomics.notify(new Uint16Array(sab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint8Array(sab), poisoned, poisoned); -}, '`Atomics.notify(new Uint8Array(sab), poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(new Uint8ClampedArray(sab), poisoned, poisoned); -}, '`Atomics.notify(new Uint8ClampedArray(sab), poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/non-views.js b/test/built-ins/Atomics/notify/non-views.js index 85a58b0b61..935e557a3f 100644 --- a/test/built-ins/Atomics/notify/non-views.js +++ b/test/built-ins/Atomics/notify/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(nonView) { assert.throws(TypeError, function() { Atomics.notify(nonView, 0, 0); - }, '`Atomics.notify(nonView, 0, 0)` throws TypeError'); // Even with count == 0 + }); // Even with count == 0 }); diff --git a/test/built-ins/Atomics/notify/not-a-constructor.js b/test/built-ins/Atomics/notify/not-a-constructor.js index 2d7c1b33d4..a62810f73e 100644 --- a/test/built-ins/Atomics/notify/not-a-constructor.js +++ b/test/built-ins/Atomics/notify/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.notify), false, 'isConstructor(Atomics.no assert.throws(TypeError, () => { new Atomics.notify(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.notify(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/not-a-typedarray-throws.js b/test/built-ins/Atomics/notify/not-a-typedarray-throws.js index 0e71a62076..60c438c105 100644 --- a/test/built-ins/Atomics/notify/not-a-typedarray-throws.js +++ b/test/built-ins/Atomics/notify/not-a-typedarray-throws.js @@ -22,8 +22,8 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.wait({}, 0, 0, 0); -}, '`Atomics.wait({}, 0, 0, 0)` throws TypeError'); +}); assert.throws(TypeError, function () { Atomics.wait({}, poisoned, poisoned, poisoned); -}, '`Atomics.wait({}, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/not-an-object-throws.js b/test/built-ins/Atomics/notify/not-an-object-throws.js index 353cdc197a..9601bbbf4b 100644 --- a/test/built-ins/Atomics/notify/not-an-object-throws.js +++ b/test/built-ins/Atomics/notify/not-an-object-throws.js @@ -21,28 +21,28 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.notify(null, poisoned, poisoned); -}, '`Atomics.notify(null, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(undefined, poisoned, poisoned); -}, '`Atomics.notify(undefined, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(true, poisoned, poisoned); -}, '`Atomics.notify(true, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(false, poisoned, poisoned); -}, '`Atomics.notify(false, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify('***string***', poisoned, poisoned); -}, '`Atomics.notify(\'***string***\', poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(Number.NEGATIVE_INFINITY, poisoned, poisoned); -}, '`Atomics.notify(Number.NEGATIVE_INFINITY, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(Symbol('***symbol***'), poisoned, poisoned); -}, '`Atomics.notify(Symbol(\'***symbol***\'), poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/null-bufferdata-throws.js b/test/built-ins/Atomics/notify/null-bufferdata-throws.js index 46f8504b94..55070aadea 100644 --- a/test/built-ins/Atomics/notify/null-bufferdata-throws.js +++ b/test/built-ins/Atomics/notify/null-bufferdata-throws.js @@ -40,4 +40,4 @@ try { assert.throws(TypeError, function() { Atomics.notify(i32a, poisoned, poisoned); -}, '`Atomics.notify(i32a, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/notify/out-of-range-index-throws.js b/test/built-ins/Atomics/notify/out-of-range-index-throws.js index 814a0a73b8..591e1d336e 100644 --- a/test/built-ins/Atomics/notify/out-of-range-index-throws.js +++ b/test/built-ins/Atomics/notify/out-of-range-index-throws.js @@ -28,10 +28,10 @@ var poisoned = { assert.throws(RangeError, function() { Atomics.notify(i32a, Infinity, poisoned); -}, '`Atomics.notify(i32a, Infinity, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.notify(i32a, 4, poisoned); -}, '`Atomics.notify(i32a, 4, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.notify(i32a, 200, poisoned); -}, '`Atomics.notify(i32a, 200, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/notify/symbol-for-index-throws.js b/test/built-ins/Atomics/notify/symbol-for-index-throws.js index 26c0c5be13..0ae4c73518 100644 --- a/test/built-ins/Atomics/notify/symbol-for-index-throws.js +++ b/test/built-ins/Atomics/notify/symbol-for-index-throws.js @@ -46,16 +46,16 @@ const poisonedToPrimitive = { assert.throws(Test262Error, function() { Atomics.notify(i32a, poisonedValueOf, poisonedValueOf); -}, '`Atomics.notify(i32a, poisonedValueOf, poisonedValueOf)` throws Test262Error'); +}); assert.throws(Test262Error, function() { Atomics.notify(i32a, poisonedToPrimitive, poisonedToPrimitive); -}, '`Atomics.notify(i32a, poisonedToPrimitive, poisonedToPrimitive)` throws Test262Error'); +}); assert.throws(TypeError, function() { Atomics.notify(i32a, Symbol("foo"), poisonedValueOf); -}, '`Atomics.notify(i32a, Symbol("foo"), poisonedValueOf)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.notify(i32a, Symbol("foo"), poisonedToPrimitive); -}, '`Atomics.notify(i32a, Symbol("foo"), poisonedToPrimitive)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/or/bad-range.js b/test/built-ins/Atomics/or/bad-range.js index 5ac2f37787..c221f203f1 100644 --- a/test/built-ins/Atomics/or/bad-range.js +++ b/test/built-ins/Atomics/or/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.or(view, IdxGen(view), 10); - }, '`Atomics.or(view, IdxGen(view), 10)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/or/bigint/bad-range.js b/test/built-ins/Atomics/or/bigint/bad-range.js index c3f4288123..99c34e6c62 100644 --- a/test/built-ins/Atomics/or/bigint/bad-range.js +++ b/test/built-ins/Atomics/or/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.or(view, IdxGen(view), 10n); - }, '`Atomics.or(view, IdxGen(view), 10n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/or/non-views.js b/test/built-ins/Atomics/or/non-views.js index 5ad0588b88..21915a0093 100644 --- a/test/built-ins/Atomics/or/non-views.js +++ b/test/built-ins/Atomics/or/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.or(view, 0, 0); - }, '`Atomics.or(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/or/not-a-constructor.js b/test/built-ins/Atomics/or/not-a-constructor.js index 974625579f..f5c0ef4b3e 100644 --- a/test/built-ins/Atomics/or/not-a-constructor.js +++ b/test/built-ins/Atomics/or/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.or), false, 'isConstructor(Atomics.or) mu assert.throws(TypeError, () => { new Atomics.or(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.or(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/prop-desc.js b/test/built-ins/Atomics/prop-desc.js index 90825f14f7..d5fa42ea7a 100644 --- a/test/built-ins/Atomics/prop-desc.js +++ b/test/built-ins/Atomics/prop-desc.js @@ -28,11 +28,11 @@ assert.sameValue(typeof Atomics, "object", 'The value of `typeof Atomics` is "ob assert.throws(TypeError, function() { Atomics(); -}, '`Atomics()` throws TypeError'); +}); assert.throws(TypeError, function() { new Atomics(); -}, '`new Atomics()` throws TypeError'); +}); verifyProperty(this, "Atomics", { enumerable: false, diff --git a/test/built-ins/Atomics/store/bad-range.js b/test/built-ins/Atomics/store/bad-range.js index 7037736a98..4449f85dcd 100644 --- a/test/built-ins/Atomics/store/bad-range.js +++ b/test/built-ins/Atomics/store/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.store(view, IdxGen(view), 10); - }, '`Atomics.store(view, IdxGen(view), 10)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/store/bigint/bad-range.js b/test/built-ins/Atomics/store/bigint/bad-range.js index c79f46f9d3..068b95b31c 100644 --- a/test/built-ins/Atomics/store/bigint/bad-range.js +++ b/test/built-ins/Atomics/store/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(TA => { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.store(view, IdxGen(view), 10n); - }, '`Atomics.store(view, IdxGen(view), 10n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/store/non-views.js b/test/built-ins/Atomics/store/non-views.js index f5159751fc..356f3a27ff 100644 --- a/test/built-ins/Atomics/store/non-views.js +++ b/test/built-ins/Atomics/store/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.store(view, 0, 0); - }, '`Atomics.store(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/store/not-a-constructor.js b/test/built-ins/Atomics/store/not-a-constructor.js index 5478d50503..331f15a839 100644 --- a/test/built-ins/Atomics/store/not-a-constructor.js +++ b/test/built-ins/Atomics/store/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.store), false, 'isConstructor(Atomics.sto assert.throws(TypeError, () => { new Atomics.store(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.store(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/sub/bad-range.js b/test/built-ins/Atomics/sub/bad-range.js index 245fcb66a7..15eabc048a 100644 --- a/test/built-ins/Atomics/sub/bad-range.js +++ b/test/built-ins/Atomics/sub/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.sub(view, IdxGen(view), 10); - }, '`Atomics.sub(view, IdxGen(view), 10)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/sub/bigint/bad-range.js b/test/built-ins/Atomics/sub/bigint/bad-range.js index 624c2dfac3..920eba9631 100644 --- a/test/built-ins/Atomics/sub/bigint/bad-range.js +++ b/test/built-ins/Atomics/sub/bigint/bad-range.js @@ -15,6 +15,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.sub(view, IdxGen(view), 10n); - }, '`Atomics.sub(view, IdxGen(view), 10n)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/sub/non-views.js b/test/built-ins/Atomics/sub/non-views.js index 9b8abbb293..c415b5a75c 100644 --- a/test/built-ins/Atomics/sub/non-views.js +++ b/test/built-ins/Atomics/sub/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.sub(view, 0, 0); - }, '`Atomics.sub(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/sub/not-a-constructor.js b/test/built-ins/Atomics/sub/not-a-constructor.js index 95c1c23d24..d908130eb3 100644 --- a/test/built-ins/Atomics/sub/not-a-constructor.js +++ b/test/built-ins/Atomics/sub/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.sub), false, 'isConstructor(Atomics.sub) assert.throws(TypeError, () => { new Atomics.sub(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.sub(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/bad-range.js b/test/built-ins/Atomics/wait/bad-range.js index 2ee68dced9..56eeaffcd9 100644 --- a/test/built-ins/Atomics/wait/bad-range.js +++ b/test/built-ins/Atomics/wait/bad-range.js @@ -22,5 +22,5 @@ const i32a = new Int32Array( testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.wait(i32a, IdxGen(i32a), 0, 0); - }, '`Atomics.wait(i32a, IdxGen(i32a), 0, 0)` throws RangeError'); + }); }); diff --git a/test/built-ins/Atomics/wait/bigint/bad-range.js b/test/built-ins/Atomics/wait/bigint/bad-range.js index 535933f2fd..f15a77a4eb 100644 --- a/test/built-ins/Atomics/wait/bigint/bad-range.js +++ b/test/built-ins/Atomics/wait/bigint/bad-range.js @@ -22,5 +22,5 @@ const i64a = new BigInt64Array( testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.wait(i64a, IdxGen(i64a), 0n, 0); - }, '`Atomics.wait(i64a, IdxGen(i64a), 0n, 0)` throws RangeError'); + }); }); diff --git a/test/built-ins/Atomics/wait/bigint/cannot-suspend-throws.js b/test/built-ins/Atomics/wait/bigint/cannot-suspend-throws.js index 569330baaa..51d64b83a3 100644 --- a/test/built-ins/Atomics/wait/bigint/cannot-suspend-throws.js +++ b/test/built-ins/Atomics/wait/bigint/cannot-suspend-throws.js @@ -21,4 +21,4 @@ const i64a = new BigInt64Array(new SharedArrayBuffer(BigInt64Array.BYTES_PER_ELE assert.throws(TypeError, function() { Atomics.wait(i64a, 0, 0n, 0); -}, '`Atomics.wait(i64a, 0, 0n, 0)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/bigint/negative-index-throws.js b/test/built-ins/Atomics/wait/bigint/negative-index-throws.js index 552b710478..9acd86db1e 100644 --- a/test/built-ins/Atomics/wait/bigint/negative-index-throws.js +++ b/test/built-ins/Atomics/wait/bigint/negative-index-throws.js @@ -27,13 +27,13 @@ const poisoned = { assert.throws(RangeError, function() { Atomics.wait(i64a, -Infinity, poisoned, poisoned); -}, '`Atomics.wait(i64a, -Infinity, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i64a, -7.999, poisoned, poisoned); -}, '`Atomics.wait(i64a, -7.999, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i64a, -1, poisoned, poisoned); -}, '`Atomics.wait(i64a, -1, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i64a, -300, poisoned, poisoned); -}, '`Atomics.wait(i64a, -300, poisoned, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/wait/bigint/non-bigint64-typedarray-throws.js b/test/built-ins/Atomics/wait/bigint/non-bigint64-typedarray-throws.js index 9574f9374c..d435c0f114 100644 --- a/test/built-ins/Atomics/wait/bigint/non-bigint64-typedarray-throws.js +++ b/test/built-ins/Atomics/wait/bigint/non-bigint64-typedarray-throws.js @@ -34,8 +34,8 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.wait(i64a, 0, 0n, 0); -}, '`Atomics.wait(i64a, 0, 0n, 0)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i64a, poisoned, poisoned, poisoned); -}, '`Atomics.wait(i64a, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/bigint/non-shared-bufferdata-throws.js b/test/built-ins/Atomics/wait/bigint/non-shared-bufferdata-throws.js index 6769b54bd8..e23d2536c1 100644 --- a/test/built-ins/Atomics/wait/bigint/non-shared-bufferdata-throws.js +++ b/test/built-ins/Atomics/wait/bigint/non-shared-bufferdata-throws.js @@ -24,8 +24,8 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.wait(i64a, 0, 0n, 0); -}, '`Atomics.wait(i64a, 0, 0n, 0)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i64a, poisoned, poisoned, poisoned); -}, '`Atomics.wait(i64a, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/bigint/null-bufferdata-throws.js b/test/built-ins/Atomics/wait/bigint/null-bufferdata-throws.js index e1fb418d91..c40ee43774 100644 --- a/test/built-ins/Atomics/wait/bigint/null-bufferdata-throws.js +++ b/test/built-ins/Atomics/wait/bigint/null-bufferdata-throws.js @@ -42,4 +42,4 @@ try { assert.throws(TypeError, function() { Atomics.wait(i64a, poisoned, poisoned, poisoned); -}, '`Atomics.wait(i64a, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/bigint/out-of-range-index-throws.js b/test/built-ins/Atomics/wait/bigint/out-of-range-index-throws.js index be7ba81e20..dd86c469c4 100644 --- a/test/built-ins/Atomics/wait/bigint/out-of-range-index-throws.js +++ b/test/built-ins/Atomics/wait/bigint/out-of-range-index-throws.js @@ -28,10 +28,10 @@ const poisoned = { assert.throws(RangeError, function() { Atomics.wait(i64a, Infinity, poisoned, poisoned); -}, '`Atomics.wait(i64a, Infinity, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i64a, 8, poisoned, poisoned); -}, '`Atomics.wait(i64a, 8, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i64a, 200, poisoned, poisoned); -}, '`Atomics.wait(i64a, 200, poisoned, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/wait/cannot-suspend-throws.js b/test/built-ins/Atomics/wait/cannot-suspend-throws.js index 48941b8cab..39792eb682 100644 --- a/test/built-ins/Atomics/wait/cannot-suspend-throws.js +++ b/test/built-ins/Atomics/wait/cannot-suspend-throws.js @@ -24,4 +24,4 @@ const i32a = new Int32Array( assert.throws(TypeError, function() { Atomics.wait(i32a, 0, 0, 0); -}, '`Atomics.wait(i32a, 0, 0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/negative-index-throws.js b/test/built-ins/Atomics/wait/negative-index-throws.js index 62dc993ed1..4fbed6f56b 100644 --- a/test/built-ins/Atomics/wait/negative-index-throws.js +++ b/test/built-ins/Atomics/wait/negative-index-throws.js @@ -29,13 +29,13 @@ const poisoned = { assert.throws(RangeError, function() { Atomics.wait(i32a, -Infinity, poisoned, poisoned); -}, '`Atomics.wait(i32a, -Infinity, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, -7.999, poisoned, poisoned); -}, '`Atomics.wait(i32a, -7.999, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, -1, poisoned, poisoned); -}, '`Atomics.wait(i32a, -1, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, -300, poisoned, poisoned); -}, '`Atomics.wait(i32a, -300, poisoned, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/wait/non-int32-typedarray-throws.js b/test/built-ins/Atomics/wait/non-int32-typedarray-throws.js index 83294bd838..eb2a534059 100644 --- a/test/built-ins/Atomics/wait/non-int32-typedarray-throws.js +++ b/test/built-ins/Atomics/wait/non-int32-typedarray-throws.js @@ -26,14 +26,14 @@ assert.throws(TypeError, function() { new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Float64Array( new SharedArrayBuffer(Float64Array.BYTES_PER_ELEMENT * 8) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Float32Array( new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Float32Array( new SharedArrayBuffer(Float32Array.BYTES_PER_ELEMENT * 4) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); if (typeof Float16Array !== 'undefined') { assert.throws(TypeError, function() { @@ -41,7 +41,7 @@ if (typeof Float16Array !== 'undefined') { new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned); - }, '`const view = new Float16Array( new SharedArrayBuffer(Float16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); + }); } assert.throws(TypeError, function() { @@ -49,39 +49,39 @@ assert.throws(TypeError, function() { new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Int16Array( new SharedArrayBuffer(Int16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Int8Array( new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Int8Array( new SharedArrayBuffer(Int8Array.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint32Array( new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Uint32Array( new SharedArrayBuffer(Uint32Array.BYTES_PER_ELEMENT * 4) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint16Array( new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Uint16Array( new SharedArrayBuffer(Uint16Array.BYTES_PER_ELEMENT * 2) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint8Array( new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Uint8Array( new SharedArrayBuffer(Uint8Array.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { const view = new Uint8ClampedArray( new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned); -}, '`const view = new Uint8ClampedArray( new SharedArrayBuffer(Uint8ClampedArray.BYTES_PER_ELEMENT) ); Atomics.wait(view, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/non-shared-bufferdata-throws.js b/test/built-ins/Atomics/wait/non-shared-bufferdata-throws.js index 4da17d0bd4..164af59e2b 100644 --- a/test/built-ins/Atomics/wait/non-shared-bufferdata-throws.js +++ b/test/built-ins/Atomics/wait/non-shared-bufferdata-throws.js @@ -27,8 +27,8 @@ const poisoned = { assert.throws(TypeError, function() { Atomics.wait(i32a, 0, 0, 0); -}, '`Atomics.wait(i32a, 0, 0, 0)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, poisoned, poisoned, poisoned); -}, '`Atomics.wait(i32a, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/not-a-typedarray-throws.js b/test/built-ins/Atomics/wait/not-a-typedarray-throws.js index 62b7388f11..108f235397 100644 --- a/test/built-ins/Atomics/wait/not-a-typedarray-throws.js +++ b/test/built-ins/Atomics/wait/not-a-typedarray-throws.js @@ -22,8 +22,8 @@ var poisoned = { assert.throws(TypeError, function() { Atomics.wait({}, 0, 0, 0); -}, '`Atomics.wait({}, 0, 0, 0)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait({}, poisoned, poisoned, poisoned); -}, '`Atomics.wait({}, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/not-an-object-throws.js b/test/built-ins/Atomics/wait/not-an-object-throws.js index ce1c0a4937..a15e973b30 100644 --- a/test/built-ins/Atomics/wait/not-an-object-throws.js +++ b/test/built-ins/Atomics/wait/not-an-object-throws.js @@ -21,28 +21,28 @@ var poisoned = { assert.throws(TypeError, function() { Atomics.wait(null, poisoned, poisoned, poisoned); -}, '`Atomics.wait(null, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(undefined, poisoned, poisoned, poisoned); -}, '`Atomics.wait(undefined, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(true, poisoned, poisoned, poisoned); -}, '`Atomics.wait(true, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(false, poisoned, poisoned, poisoned); -}, '`Atomics.wait(false, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait('***string***', poisoned, poisoned, poisoned); -}, '`Atomics.wait(\'***string***\', poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(Number.NEGATIVE_INFINITY, poisoned, poisoned, poisoned); -}, '`Atomics.wait(Number.NEGATIVE_INFINITY, poisoned, poisoned, poisoned)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(Symbol('***symbol***'), poisoned, poisoned, poisoned); -}, '`Atomics.wait(Symbol(\'***symbol***\'), poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/null-bufferdata-throws.js b/test/built-ins/Atomics/wait/null-bufferdata-throws.js index 3747df7a8d..b4b88b1aab 100644 --- a/test/built-ins/Atomics/wait/null-bufferdata-throws.js +++ b/test/built-ins/Atomics/wait/null-bufferdata-throws.js @@ -40,4 +40,4 @@ try { assert.throws(TypeError, function() { Atomics.wait(i32a, poisoned, poisoned, poisoned); -}, '`Atomics.wait(i32a, poisoned, poisoned, poisoned)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/out-of-range-index-throws.js b/test/built-ins/Atomics/wait/out-of-range-index-throws.js index 023bb7237c..a50c31113d 100644 --- a/test/built-ins/Atomics/wait/out-of-range-index-throws.js +++ b/test/built-ins/Atomics/wait/out-of-range-index-throws.js @@ -28,13 +28,13 @@ const poisoned = { assert.throws(RangeError, function() { Atomics.wait(i32a, Infinity, poisoned, poisoned); -}, '`Atomics.wait(i32a, Infinity, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, -1, poisoned, poisoned); -}, '`Atomics.wait(i32a, -1, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, 4, poisoned, poisoned); -}, '`Atomics.wait(i32a, 4, poisoned, poisoned)` throws RangeError'); +}); assert.throws(RangeError, function() { Atomics.wait(i32a, 200, poisoned, poisoned); -}, '`Atomics.wait(i32a, 200, poisoned, poisoned)` throws RangeError'); +}); diff --git a/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws.js b/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws.js index e2880c29f4..b29c961039 100644 --- a/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws.js +++ b/test/built-ins/Atomics/wait/poisoned-object-for-timeout-throws.js @@ -36,8 +36,8 @@ const poisonedToPrimitive = { assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, 0, poisonedValueOf); -}, '`Atomics.wait(i32a, 0, 0, poisonedValueOf)` throws Test262Error'); +}); assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, 0, poisonedToPrimitive); -}, '`Atomics.wait(i32a, 0, 0, poisonedToPrimitive)` throws Test262Error'); +}); diff --git a/test/built-ins/Atomics/wait/symbol-for-index-throws.js b/test/built-ins/Atomics/wait/symbol-for-index-throws.js index 77a562f015..0956311742 100644 --- a/test/built-ins/Atomics/wait/symbol-for-index-throws.js +++ b/test/built-ins/Atomics/wait/symbol-for-index-throws.js @@ -46,16 +46,16 @@ const poisonedToPrimitive = { assert.throws(Test262Error, function() { Atomics.wait(i32a, poisonedValueOf, poisonedValueOf, poisonedValueOf); -}, '`Atomics.wait(i32a, poisonedValueOf, poisonedValueOf, poisonedValueOf)` throws Test262Error'); +}); assert.throws(Test262Error, function() { Atomics.wait(i32a, poisonedToPrimitive, poisonedToPrimitive, poisonedToPrimitive); -}, '`Atomics.wait(i32a, poisonedToPrimitive, poisonedToPrimitive, poisonedToPrimitive)` throws Test262Error'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, Symbol('foo'), poisonedValueOf, poisonedValueOf); -}, '`Atomics.wait(i32a, Symbol(\'foo\'), poisonedValueOf, poisonedValueOf)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, Symbol('foo'), poisonedToPrimitive, poisonedToPrimitive); -}, '`Atomics.wait(i32a, Symbol(\'foo\'), poisonedToPrimitive, poisonedToPrimitive)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/symbol-for-timeout-throws.js b/test/built-ins/Atomics/wait/symbol-for-timeout-throws.js index 7d2afedd3f..6030e0fd13 100644 --- a/test/built-ins/Atomics/wait/symbol-for-timeout-throws.js +++ b/test/built-ins/Atomics/wait/symbol-for-timeout-throws.js @@ -32,16 +32,16 @@ var poisonedToPrimitive = { assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, 0, poisonedValueOf); -}, '`Atomics.wait(i32a, 0, 0, poisonedValueOf)` throws Test262Error'); +}); assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, 0, poisonedToPrimitive); -}, '`Atomics.wait(i32a, 0, 0, poisonedToPrimitive)` throws Test262Error'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, 0, 0, Symbol("foo")); -}, '`Atomics.wait(i32a, 0, 0, Symbol("foo"))` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, 0, 0, Symbol("foo")); -}, '`Atomics.wait(i32a, 0, 0, Symbol("foo"))` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/wait/symbol-for-value-throws.js b/test/built-ins/Atomics/wait/symbol-for-value-throws.js index 6fff623482..bbbf7f4842 100644 --- a/test/built-ins/Atomics/wait/symbol-for-value-throws.js +++ b/test/built-ins/Atomics/wait/symbol-for-value-throws.js @@ -37,16 +37,16 @@ const poisonedToPrimitive = { assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, poisonedValueOf, poisonedValueOf); -}, '`Atomics.wait(i32a, 0, poisonedValueOf, poisonedValueOf)` throws Test262Error'); +}); assert.throws(Test262Error, function() { Atomics.wait(i32a, 0, poisonedToPrimitive, poisonedToPrimitive); -}, '`Atomics.wait(i32a, 0, poisonedToPrimitive, poisonedToPrimitive)` throws Test262Error'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, 0, Symbol("foo"), poisonedValueOf); -}, '`Atomics.wait(i32a, 0, Symbol("foo"), poisonedValueOf)` throws TypeError'); +}); assert.throws(TypeError, function() { Atomics.wait(i32a, 0, Symbol("foo"), poisonedToPrimitive); -}, '`Atomics.wait(i32a, 0, Symbol("foo"), poisonedToPrimitive)` throws TypeError'); +}); diff --git a/test/built-ins/Atomics/xor/bad-range.js b/test/built-ins/Atomics/xor/bad-range.js index 644f752350..0de01cbd9c 100644 --- a/test/built-ins/Atomics/xor/bad-range.js +++ b/test/built-ins/Atomics/xor/bad-range.js @@ -17,6 +17,6 @@ testWithTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.xor(view, IdxGen(view), 0); - }, '`Atomics.xor(view, IdxGen(view), 0)` throws RangeError'); + }); }); }, views); diff --git a/test/built-ins/Atomics/xor/bigint/bad-range.js b/test/built-ins/Atomics/xor/bigint/bad-range.js index 45a2db5bd9..5436347fe3 100644 --- a/test/built-ins/Atomics/xor/bigint/bad-range.js +++ b/test/built-ins/Atomics/xor/bigint/bad-range.js @@ -16,6 +16,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { testWithAtomicsOutOfBoundsIndices(function(IdxGen) { assert.throws(RangeError, function() { Atomics.xor(view, IdxGen(view), 10); - }, '`Atomics.xor(view, IdxGen(view), 10)` throws RangeError'); + }); }); }); diff --git a/test/built-ins/Atomics/xor/non-views.js b/test/built-ins/Atomics/xor/non-views.js index d4f4cd77c2..a4c4c167d2 100644 --- a/test/built-ins/Atomics/xor/non-views.js +++ b/test/built-ins/Atomics/xor/non-views.js @@ -12,5 +12,5 @@ features: [ArrayBuffer, Atomics, DataView, SharedArrayBuffer, Symbol, TypedArray testWithAtomicsNonViewValues(function(view) { assert.throws(TypeError, function() { Atomics.xor(view, 0, 0); - }, '`Atomics.xor(view, 0, 0)` throws TypeError'); + }); }); diff --git a/test/built-ins/Atomics/xor/not-a-constructor.js b/test/built-ins/Atomics/xor/not-a-constructor.js index 6e04b69f01..c48782415d 100644 --- a/test/built-ins/Atomics/xor/not-a-constructor.js +++ b/test/built-ins/Atomics/xor/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Atomics.xor), false, 'isConstructor(Atomics.xor) assert.throws(TypeError, () => { new Atomics.xor(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT))); -}, '`new Atomics.xor(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); +}); diff --git a/test/built-ins/BigInt/asIntN/not-a-constructor.js b/test/built-ins/BigInt/asIntN/not-a-constructor.js index 1cf1ae2d81..32a3db0abd 100644 --- a/test/built-ins/BigInt/asIntN/not-a-constructor.js +++ b/test/built-ins/BigInt/asIntN/not-a-constructor.js @@ -23,4 +23,4 @@ assert.sameValue(isConstructor(BigInt.asIntN), false, 'isConstructor(BigInt.asIn assert.throws(TypeError, () => { new BigInt.asIntN(64, 1n); -}, '`new BigInt.asIntN(64, 1n)` throws TypeError'); +}); diff --git a/test/built-ins/BigInt/asUintN/not-a-constructor.js b/test/built-ins/BigInt/asUintN/not-a-constructor.js index cbedea1ed0..c48e1071cd 100644 --- a/test/built-ins/BigInt/asUintN/not-a-constructor.js +++ b/test/built-ins/BigInt/asUintN/not-a-constructor.js @@ -23,4 +23,4 @@ assert.sameValue(isConstructor(BigInt.asUintN), false, 'isConstructor(BigInt.asU assert.throws(TypeError, () => { new BigInt.asUintN(64, 1n); -}, '`new BigInt.asUintN(64, 1n)` throws TypeError'); +}); diff --git a/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js index e3caae3152..7ca45e23bc 100644 --- a/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js @@ -28,4 +28,4 @@ assert.sameValue( assert.throws(TypeError, () => { let n = 1n; new n.toLocaleString(); -}, '`let n = 1n; new n.toLocaleString()` throws TypeError'); +}); diff --git a/test/built-ins/BigInt/prototype/toString/not-a-constructor.js b/test/built-ins/BigInt/prototype/toString/not-a-constructor.js index cd5763a8e7..dd3b0db969 100644 --- a/test/built-ins/BigInt/prototype/toString/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/toString/not-a-constructor.js @@ -28,4 +28,4 @@ assert.sameValue( assert.throws(TypeError, () => { let n = 1n; new n.toString(); -}, '`let n = 1n; new n.toString()` throws TypeError'); +}); diff --git a/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js b/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js index 982214f99a..a9fceb7d02 100644 --- a/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js @@ -28,4 +28,4 @@ assert.sameValue( assert.throws(TypeError, () => { let n = 1n; new n.valueOf(); -}, '`let n = 1n; new n.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/Boolean/prototype/toString/not-a-constructor.js b/test/built-ins/Boolean/prototype/toString/not-a-constructor.js index f70ed4defa..8df1c7bf33 100644 --- a/test/built-ins/Boolean/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Boolean/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Boolean.prototype.toString(); -}, '`new Boolean.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js b/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js index 578f9d9461..8cbe7bf1f6 100644 --- a/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Boolean.prototype.valueOf(); -}, '`new Boolean.prototype.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js b/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js index 758d8690f3..fc73045f9a 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getBigInt64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigInt64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js b/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js index 8610660741..6592a4f760 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getBigUint64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigUint64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js b/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js index 6a269af05a..d65fc678e7 100644 --- a/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js b/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js index 54b1105a79..f326b61b08 100644 --- a/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js b/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js index 03f38347d3..1f8c666930 100644 --- a/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getInt16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt16(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js b/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js index 30aa97373b..24d02a3af1 100644 --- a/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getInt32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js b/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js index a0d48f745e..7d88a3324f 100644 --- a/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getInt8(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt8(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js b/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js index b0ad42c394..6493a6020c 100644 --- a/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getUint16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint16(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js b/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js index 98ca228cc2..65931d9db6 100644 --- a/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getUint32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js b/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js index b3165ff2ae..4cfd47a0d3 100644 --- a/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.getUint8(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint8(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js b/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js index 29ae5b573c..e620e6155e 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setBigInt64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigInt64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js b/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js index b9354d7ea8..2c5b5d6b44 100644 --- a/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setBigUint64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigUint64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js b/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js index ae8c2625d4..37e2534f19 100644 --- a/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js b/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js index f2429b5c25..33618e14f1 100644 --- a/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat64(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat64(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js b/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js index 08610bdf2a..6c9bc77cc6 100644 --- a/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setInt16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt16(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js b/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js index bfda6b2403..329cc728d8 100644 --- a/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js b/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js index 02de3d7192..6bb376e6b3 100644 --- a/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setInt8(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt8(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js b/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js index 7c80e85b42..300fced5bf 100644 --- a/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setUint16(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint16(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js b/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js index 2a7d234d5d..f5c3819ce1 100644 --- a/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setUint32(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint32(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js b/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js index 8ea7610a66..956fbfa369 100644 --- a/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let dv = new DataView(new ArrayBuffer(16)); new dv.setUint8(0, 0); -}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint8(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/Date/UTC/not-a-constructor.js b/test/built-ins/Date/UTC/not-a-constructor.js index c59dbc6d07..7217ea895d 100644 --- a/test/built-ins/Date/UTC/not-a-constructor.js +++ b/test/built-ins/Date/UTC/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Date.UTC), false, 'isConstructor(Date.UTC) must r assert.throws(TypeError, () => { new Date.UTC(); -}, '`new Date.UTC()` throws TypeError'); +}); diff --git a/test/built-ins/Date/now/not-a-constructor.js b/test/built-ins/Date/now/not-a-constructor.js index c9b04f47a8..d215d8ba7c 100644 --- a/test/built-ins/Date/now/not-a-constructor.js +++ b/test/built-ins/Date/now/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Date.now), false, 'isConstructor(Date.now) must r assert.throws(TypeError, () => { new Date.now(); -}, '`new Date.now()` throws TypeError'); +}); diff --git a/test/built-ins/Date/parse/not-a-constructor.js b/test/built-ins/Date/parse/not-a-constructor.js index 35354055c8..dd3276953b 100644 --- a/test/built-ins/Date/parse/not-a-constructor.js +++ b/test/built-ins/Date/parse/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Date.parse), false, 'isConstructor(Date.parse) mu assert.throws(TypeError, () => { new Date.parse(); -}, '`new Date.parse()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getDate/not-a-constructor.js b/test/built-ins/Date/prototype/getDate/not-a-constructor.js index 3043f07b61..10d86b317b 100644 --- a/test/built-ins/Date/prototype/getDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getDate/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getDate(); -}, '`let date = new Date(Date.now()); new date.getDate()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getDay/not-a-constructor.js b/test/built-ins/Date/prototype/getDay/not-a-constructor.js index e365a32cb2..f01ec92f01 100644 --- a/test/built-ins/Date/prototype/getDay/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getDay/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getDay(); -}, '`let date = new Date(Date.now()); new date.getDay()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js b/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js index 187e6d11f0..6e7a58a153 100644 --- a/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getFullYear(); -}, '`let date = new Date(Date.now()); new date.getFullYear()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getHours/not-a-constructor.js b/test/built-ins/Date/prototype/getHours/not-a-constructor.js index be31482638..b29d2d1b25 100644 --- a/test/built-ins/Date/prototype/getHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getHours/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getHours(); -}, '`let date = new Date(Date.now()); new date.getHours()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js b/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js index 4adbb5c184..383905c84e 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMilliseconds(); -}, '`let date = new Date(Date.now()); new date.getMilliseconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js b/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js index 695eebb793..ab9e598692 100644 --- a/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMinutes(); -}, '`let date = new Date(Date.now()); new date.getMinutes()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getMonth/not-a-constructor.js b/test/built-ins/Date/prototype/getMonth/not-a-constructor.js index 597d476abf..0fc4e67c51 100644 --- a/test/built-ins/Date/prototype/getMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMonth/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getMonth(); -}, '`let date = new Date(Date.now()); new date.getMonth()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js b/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js index 953fc4f1df..315b39d9f2 100644 --- a/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getSeconds(); -}, '`let date = new Date(Date.now()); new date.getSeconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getTime/not-a-constructor.js b/test/built-ins/Date/prototype/getTime/not-a-constructor.js index 034bd10167..a5e4123f7e 100644 --- a/test/built-ins/Date/prototype/getTime/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getTime/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getTime(); -}, '`let date = new Date(Date.now()); new date.getTime()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js b/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js index ecf6bd6270..1304367613 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getTimezoneOffset(); -}, '`let date = new Date(Date.now()); new date.getTimezoneOffset()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js index 1d1440d03a..21c13f31d3 100644 --- a/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCDate(); -}, '`let date = new Date(Date.now()); new date.getUTCDate()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js index 23cd115a71..0e6b5f13bd 100644 --- a/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCDay(); -}, '`let date = new Date(Date.now()); new date.getUTCDay()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js index 26e0e05969..529031f1a1 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCFullYear(); -}, '`let date = new Date(Date.now()); new date.getUTCFullYear()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js index c5f65a3b28..90ef143bf7 100644 --- a/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCHours(); -}, '`let date = new Date(Date.now()); new date.getUTCHours()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js index d12dfdafd2..11669c4b73 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMilliseconds(); -}, '`let date = new Date(Date.now()); new date.getUTCMilliseconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js index 3d0cbcad39..3ff4da9fbe 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMinutes(); -}, '`let date = new Date(Date.now()); new date.getUTCMinutes()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js index dce22c74b9..8b012598fc 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCMonth(); -}, '`let date = new Date(Date.now()); new date.getUTCMonth()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js b/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js index 683ef986fb..93168d857c 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.getUTCSeconds(); -}, '`let date = new Date(Date.now()); new date.getUTCSeconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setDate/not-a-constructor.js b/test/built-ins/Date/prototype/setDate/not-a-constructor.js index 2db8b5e614..a31f566f14 100644 --- a/test/built-ins/Date/prototype/setDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setDate/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setDate(); -}, '`let date = new Date(Date.now()); new date.setDate()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js b/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js index bdad193c19..933ba06cae 100644 --- a/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setFullYear(); -}, '`let date = new Date(Date.now()); new date.setFullYear()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setHours/not-a-constructor.js b/test/built-ins/Date/prototype/setHours/not-a-constructor.js index 69c5053c56..307b438dca 100644 --- a/test/built-ins/Date/prototype/setHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setHours/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setHours(); -}, '`let date = new Date(Date.now()); new date.setHours()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js b/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js index 4fbe9f3d7f..cbc9503d47 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMilliseconds(); -}, '`let date = new Date(Date.now()); new date.setMilliseconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js b/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js index ea8fdf6002..d7c02ff0ca 100644 --- a/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMinutes(); -}, '`let date = new Date(Date.now()); new date.setMinutes()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setMonth/not-a-constructor.js b/test/built-ins/Date/prototype/setMonth/not-a-constructor.js index f58140aa86..a7f3014171 100644 --- a/test/built-ins/Date/prototype/setMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMonth/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setMonth(); -}, '`let date = new Date(Date.now()); new date.setMonth()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js b/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js index 0050fd8813..8a0547aabb 100644 --- a/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setSeconds(); -}, '`let date = new Date(Date.now()); new date.setSeconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setTime/not-a-constructor.js b/test/built-ins/Date/prototype/setTime/not-a-constructor.js index aa0bba48b5..3e5671080e 100644 --- a/test/built-ins/Date/prototype/setTime/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setTime/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setTime(); -}, '`let date = new Date(Date.now()); new date.setTime()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js index 5e0aec9ace..2de8486cc8 100644 --- a/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCDate(); -}, '`let date = new Date(Date.now()); new date.setUTCDate()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js index d3c78d18ab..b26ab45dc4 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCFullYear(); -}, '`let date = new Date(Date.now()); new date.setUTCFullYear()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js index 002c6bfbdc..d91af9ee28 100644 --- a/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCHours(); -}, '`let date = new Date(Date.now()); new date.setUTCHours()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js index b5eca2fa8c..1bb9dd87d3 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMilliseconds(); -}, '`let date = new Date(Date.now()); new date.setUTCMilliseconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js index 0762ec300d..c2ea041e2c 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMinutes(); -}, '`let date = new Date(Date.now()); new date.setUTCMinutes()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js index c643c46b12..7d74c8f39f 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCMonth(); -}, '`let date = new Date(Date.now()); new date.setUTCMonth()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js b/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js index 0d3e05accf..b2058e3632 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.setUTCSeconds(); -}, '`let date = new Date(Date.now()); new date.setUTCSeconds()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toDateString/not-a-constructor.js b/test/built-ins/Date/prototype/toDateString/not-a-constructor.js index 77e948feb2..8b23807f76 100644 --- a/test/built-ins/Date/prototype/toDateString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toDateString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toDateString(); -}, '`let date = new Date(Date.now()); new date.toDateString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toISOString/not-a-constructor.js b/test/built-ins/Date/prototype/toISOString/not-a-constructor.js index 72fac85568..baed6bfbff 100644 --- a/test/built-ins/Date/prototype/toISOString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toISOString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toISOString(); -}, '`let date = new Date(Date.now()); new date.toISOString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toJSON/not-a-constructor.js b/test/built-ins/Date/prototype/toJSON/not-a-constructor.js index e0cc28f9c8..48fbcaa05a 100644 --- a/test/built-ins/Date/prototype/toJSON/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toJSON/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toJSON(); -}, '`let date = new Date(Date.now()); new date.toJSON()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js b/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js index dd8cbb452c..f304a948d7 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleDateString(); -}, '`let date = new Date(Date.now()); new date.toLocaleDateString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js index e64a4c96dc..299956fdca 100644 --- a/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleString(); -}, '`let date = new Date(Date.now()); new date.toLocaleString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js b/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js index 8ea0430150..4635a1558d 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toLocaleTimeString(); -}, '`let date = new Date(Date.now()); new date.toLocaleTimeString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toString/not-a-constructor.js b/test/built-ins/Date/prototype/toString/not-a-constructor.js index 1d6e8d2d27..61d0aee3e8 100644 --- a/test/built-ins/Date/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toString(); -}, '`let date = new Date(Date.now()); new date.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js b/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js index c55fd5ac3d..6b4179bb64 100644 --- a/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toTimeString(); -}, '`let date = new Date(Date.now()); new date.toTimeString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js b/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js index 1554cb55be..0747f238ed 100644 --- a/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.toUTCString(); -}, '`let date = new Date(Date.now()); new date.toUTCString()` throws TypeError'); +}); diff --git a/test/built-ins/Date/prototype/valueOf/not-a-constructor.js b/test/built-ins/Date/prototype/valueOf/not-a-constructor.js index ce4a2083f0..5098688573 100644 --- a/test/built-ins/Date/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Date/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let date = new Date(Date.now()); new date.valueOf(); -}, '`let date = new Date(Date.now()); new date.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/Error/prototype/toString/not-a-constructor.js b/test/built-ins/Error/prototype/toString/not-a-constructor.js index ce2591120f..13fba2df18 100644 --- a/test/built-ins/Error/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Error/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Error.prototype.toString(); -}, '`new Error.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js b/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js index 9bc781182e..136a9c471a 100644 --- a/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let fr = new FinalizationRegistry(() => {}); new fr.cleanupSome(() => {}); -}, '`let fr = new FinalizationRegistry(() => {}); new fr.cleanupSome(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js b/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js index 4599b8016e..7c5871d13f 100644 --- a/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let fr = new FinalizationRegistry(() => {}); new fr.register({}); -}, '`let fr = new FinalizationRegistry(() => {}); new fr.register({})` throws TypeError'); +}); diff --git a/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js b/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js index 530a432f3b..e538e51440 100644 --- a/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let fr = new FinalizationRegistry(() => {}); let token = {}; fr.register(token); new fr.unregister(token); -}, '`let fr = new FinalizationRegistry(() => {}); let token = {}; fr.register(token); new fr.unregister(token)` throws TypeError'); +}); diff --git a/test/built-ins/Function/prototype/apply/not-a-constructor.js b/test/built-ins/Function/prototype/apply/not-a-constructor.js index c808b02011..85f99273db 100644 --- a/test/built-ins/Function/prototype/apply/not-a-constructor.js +++ b/test/built-ins/Function/prototype/apply/not-a-constructor.js @@ -29,8 +29,8 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.apply; -}, '`new Function.prototype.apply` throws TypeError'); +}); assert.throws(TypeError, () => { new Function.prototype.apply(); -}, '`new Function.prototype.apply()` throws TypeError'); +}); diff --git a/test/built-ins/Function/prototype/bind/not-a-constructor.js b/test/built-ins/Function/prototype/bind/not-a-constructor.js index 2ad5ab62a7..0d37e20bc6 100644 --- a/test/built-ins/Function/prototype/bind/not-a-constructor.js +++ b/test/built-ins/Function/prototype/bind/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.bind(); -}, '`new Function.prototype.bind()` throws TypeError'); +}); diff --git a/test/built-ins/Function/prototype/call/not-a-constructor.js b/test/built-ins/Function/prototype/call/not-a-constructor.js index 34260535bd..db82832b35 100644 --- a/test/built-ins/Function/prototype/call/not-a-constructor.js +++ b/test/built-ins/Function/prototype/call/not-a-constructor.js @@ -29,11 +29,11 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.call(); -}, '`new Function.prototype.call()` throws TypeError'); +}); assert.throws(TypeError, () => { new Function.prototype.call; -}, '`new Function.prototype.call` throws TypeError'); +}); var call = Function.prototype.call; assert.throws(TypeError, () => { diff --git a/test/built-ins/Function/prototype/toString/not-a-constructor.js b/test/built-ins/Function/prototype/toString/not-a-constructor.js index e5725c3328..0028d48076 100644 --- a/test/built-ins/Function/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Function/prototype/toString/not-a-constructor.js @@ -29,9 +29,9 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.toString(); -}, '`new Function.prototype.toString()` throws TypeError'); +}); var toString = Function.prototype.toString; assert.throws(TypeError, () => { new toString; -}, '`new toString` throws TypeError'); +}); diff --git a/test/built-ins/GeneratorPrototype/next/not-a-constructor.js b/test/built-ins/GeneratorPrototype/next/not-a-constructor.js index 2db989485f..50d259e1b0 100644 --- a/test/built-ins/GeneratorPrototype/next/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/next/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { function* g() {} let iterator = g(); new iterator.next(); -}, '`function* g() {} let iterator = g(); new iterator.next()` throws TypeError'); +}); diff --git a/test/built-ins/GeneratorPrototype/return/not-a-constructor.js b/test/built-ins/GeneratorPrototype/return/not-a-constructor.js index 3ab0be9b0f..aa04f56175 100644 --- a/test/built-ins/GeneratorPrototype/return/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/return/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { function* g() {} let iterator = g(); new iterator.return(); -}, '`function* g() {} let iterator = g(); new iterator.return()` throws TypeError'); +}); diff --git a/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js b/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js index 4500375213..3f5ac7441e 100644 --- a/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { function* g() {} let expected = new Test262Error(); let iterator = g();try {new iterator.throw(expected);} catch (e) {if (e !== expected) {throw e;}} -}, '`function* g() {} let expected = new Test262Error(); let iterator = g();try {new iterator.throw(expected);} catch (e) {if (e !== expected) {throw e;}}` throws TypeError'); +}); diff --git a/test/built-ins/JSON/parse/not-a-constructor.js b/test/built-ins/JSON/parse/not-a-constructor.js index 2ae56da307..c029c134b4 100644 --- a/test/built-ins/JSON/parse/not-a-constructor.js +++ b/test/built-ins/JSON/parse/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(JSON.parse), false, 'isConstructor(JSON.parse) mu assert.throws(TypeError, () => { new JSON.parse('{}'); -}, '`new JSON.parse(\'{}\')` throws TypeError'); +}); diff --git a/test/built-ins/JSON/stringify/not-a-constructor.js b/test/built-ins/JSON/stringify/not-a-constructor.js index e702a03026..c9a656aded 100644 --- a/test/built-ins/JSON/stringify/not-a-constructor.js +++ b/test/built-ins/JSON/stringify/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(JSON.stringify), false, 'isConstructor(JSON.strin assert.throws(TypeError, () => { new JSON.stringify({}); -}, '`new JSON.stringify({})` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/Symbol.iterator/not-a-constructor.js b/test/built-ins/Map/prototype/Symbol.iterator/not-a-constructor.js index a6c92886f3..49a9baebef 100644 --- a/test/built-ins/Map/prototype/Symbol.iterator/not-a-constructor.js +++ b/test/built-ins/Map/prototype/Symbol.iterator/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let m = new Map(); new m[Symbol.iterator](); -}, '`let m = new Map(); new m[Symbol.iterator]()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/clear/not-a-constructor.js b/test/built-ins/Map/prototype/clear/not-a-constructor.js index 1e6c7282f5..2f625b1434 100644 --- a/test/built-ins/Map/prototype/clear/not-a-constructor.js +++ b/test/built-ins/Map/prototype/clear/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.clear), false, 'isConstructor(Map.p assert.throws(TypeError, () => { let m = new Map(); new m.clear(); -}, '`let m = new Map(); new m.clear()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/delete/not-a-constructor.js b/test/built-ins/Map/prototype/delete/not-a-constructor.js index 52a9916fc1..5eb1179465 100644 --- a/test/built-ins/Map/prototype/delete/not-a-constructor.js +++ b/test/built-ins/Map/prototype/delete/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.delete), false, 'isConstructor(Map. assert.throws(TypeError, () => { let m = new Map(); new m.delete(); -}, '`let m = new Map(); new m.delete()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/entries/not-a-constructor.js b/test/built-ins/Map/prototype/entries/not-a-constructor.js index 023001bd26..374373174f 100644 --- a/test/built-ins/Map/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Map/prototype/entries/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let m = new Map(); new m.entries(); -}, '`let m = new Map(); new m.entries()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/forEach/not-a-constructor.js b/test/built-ins/Map/prototype/forEach/not-a-constructor.js index 95f15cbe1f..ddef62114b 100644 --- a/test/built-ins/Map/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Map/prototype/forEach/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let m = new Map(); new m.forEach(); -}, '`let m = new Map(); new m.forEach()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/get/not-a-constructor.js b/test/built-ins/Map/prototype/get/not-a-constructor.js index aeca2580c7..ef51be812d 100644 --- a/test/built-ins/Map/prototype/get/not-a-constructor.js +++ b/test/built-ins/Map/prototype/get/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.get), false, 'isConstructor(Map.pro assert.throws(TypeError, () => { let m = new Map(); new m.get(); -}, '`let m = new Map(); new m.get()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/has/not-a-constructor.js b/test/built-ins/Map/prototype/has/not-a-constructor.js index ff3861b4ff..c76685e5a4 100644 --- a/test/built-ins/Map/prototype/has/not-a-constructor.js +++ b/test/built-ins/Map/prototype/has/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.has), false, 'isConstructor(Map.pro assert.throws(TypeError, () => { let m = new Map(); new m.has(); -}, '`let m = new Map(); new m.has()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/keys/not-a-constructor.js b/test/built-ins/Map/prototype/keys/not-a-constructor.js index d35257af21..32f6178238 100644 --- a/test/built-ins/Map/prototype/keys/not-a-constructor.js +++ b/test/built-ins/Map/prototype/keys/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.keys), false, 'isConstructor(Map.pr assert.throws(TypeError, () => { let m = new Map(); new m.keys(); -}, '`let m = new Map(); new m.keys()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/set/not-a-constructor.js b/test/built-ins/Map/prototype/set/not-a-constructor.js index 3601f7804d..8877be34fe 100644 --- a/test/built-ins/Map/prototype/set/not-a-constructor.js +++ b/test/built-ins/Map/prototype/set/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.set), false, 'isConstructor(Map.pro assert.throws(TypeError, () => { let m = new Map(); new m.set(); -}, '`let m = new Map(); new m.set()` throws TypeError'); +}); diff --git a/test/built-ins/Map/prototype/values/not-a-constructor.js b/test/built-ins/Map/prototype/values/not-a-constructor.js index 20adb0c8d7..beb95d8fb8 100644 --- a/test/built-ins/Map/prototype/values/not-a-constructor.js +++ b/test/built-ins/Map/prototype/values/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Map.prototype.values), false, 'isConstructor(Map. assert.throws(TypeError, () => { let m = new Map(); new m.values(); -}, '`let m = new Map(); new m.values()` throws TypeError'); +}); diff --git a/test/built-ins/Math/abs/not-a-constructor.js b/test/built-ins/Math/abs/not-a-constructor.js index 9f97ccbb53..6291280c40 100644 --- a/test/built-ins/Math/abs/not-a-constructor.js +++ b/test/built-ins/Math/abs/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.abs), false, 'isConstructor(Math.abs) must r assert.throws(TypeError, () => { new Math.abs(); -}, '`new Math.abs()` throws TypeError'); +}); diff --git a/test/built-ins/Math/acos/not-a-constructor.js b/test/built-ins/Math/acos/not-a-constructor.js index 438e1b23a8..cb8e846b16 100644 --- a/test/built-ins/Math/acos/not-a-constructor.js +++ b/test/built-ins/Math/acos/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.acos), false, 'isConstructor(Math.acos) must assert.throws(TypeError, () => { new Math.acos(); -}, '`new Math.acos()` throws TypeError'); +}); diff --git a/test/built-ins/Math/acosh/not-a-constructor.js b/test/built-ins/Math/acosh/not-a-constructor.js index 549888fe9b..35262694a2 100644 --- a/test/built-ins/Math/acosh/not-a-constructor.js +++ b/test/built-ins/Math/acosh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.acosh), false, 'isConstructor(Math.acosh) mu assert.throws(TypeError, () => { new Math.acosh(); -}, '`new Math.acosh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/asin/not-a-constructor.js b/test/built-ins/Math/asin/not-a-constructor.js index c53025a164..d5be5fcd07 100644 --- a/test/built-ins/Math/asin/not-a-constructor.js +++ b/test/built-ins/Math/asin/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.asin), false, 'isConstructor(Math.asin) must assert.throws(TypeError, () => { new Math.asin(); -}, '`new Math.asin()` throws TypeError'); +}); diff --git a/test/built-ins/Math/asinh/not-a-constructor.js b/test/built-ins/Math/asinh/not-a-constructor.js index 1803000c2a..a67c955e00 100644 --- a/test/built-ins/Math/asinh/not-a-constructor.js +++ b/test/built-ins/Math/asinh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.asinh), false, 'isConstructor(Math.asinh) mu assert.throws(TypeError, () => { new Math.asinh(); -}, '`new Math.asinh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/atan/not-a-constructor.js b/test/built-ins/Math/atan/not-a-constructor.js index d6037d6b22..0128758d4b 100644 --- a/test/built-ins/Math/atan/not-a-constructor.js +++ b/test/built-ins/Math/atan/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.atan), false, 'isConstructor(Math.atan) must assert.throws(TypeError, () => { new Math.atan(); -}, '`new Math.atan()` throws TypeError'); +}); diff --git a/test/built-ins/Math/atan2/not-a-constructor.js b/test/built-ins/Math/atan2/not-a-constructor.js index 54f3ab02f3..fb782bf1bb 100644 --- a/test/built-ins/Math/atan2/not-a-constructor.js +++ b/test/built-ins/Math/atan2/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.atan2), false, 'isConstructor(Math.atan2) mu assert.throws(TypeError, () => { new Math.atan2(); -}, '`new Math.atan2()` throws TypeError'); +}); diff --git a/test/built-ins/Math/atanh/not-a-constructor.js b/test/built-ins/Math/atanh/not-a-constructor.js index d1b9fe8f5e..2587db59d9 100644 --- a/test/built-ins/Math/atanh/not-a-constructor.js +++ b/test/built-ins/Math/atanh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.atanh), false, 'isConstructor(Math.atanh) mu assert.throws(TypeError, () => { new Math.atanh(); -}, '`new Math.atanh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/cbrt/not-a-constructor.js b/test/built-ins/Math/cbrt/not-a-constructor.js index 219a13e7b3..ceb211dcce 100644 --- a/test/built-ins/Math/cbrt/not-a-constructor.js +++ b/test/built-ins/Math/cbrt/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.cbrt), false, 'isConstructor(Math.cbrt) must assert.throws(TypeError, () => { new Math.cbrt(); -}, '`new Math.cbrt()` throws TypeError'); +}); diff --git a/test/built-ins/Math/ceil/not-a-constructor.js b/test/built-ins/Math/ceil/not-a-constructor.js index d98f5ad522..15dab81c20 100644 --- a/test/built-ins/Math/ceil/not-a-constructor.js +++ b/test/built-ins/Math/ceil/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.ceil), false, 'isConstructor(Math.ceil) must assert.throws(TypeError, () => { new Math.ceil(); -}, '`new Math.ceil()` throws TypeError'); +}); diff --git a/test/built-ins/Math/clz32/not-a-constructor.js b/test/built-ins/Math/clz32/not-a-constructor.js index 19c24d11b1..fb498a0218 100644 --- a/test/built-ins/Math/clz32/not-a-constructor.js +++ b/test/built-ins/Math/clz32/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.clz32), false, 'isConstructor(Math.clz32) mu assert.throws(TypeError, () => { new Math.clz32(); -}, '`new Math.clz32()` throws TypeError'); +}); diff --git a/test/built-ins/Math/cos/not-a-constructor.js b/test/built-ins/Math/cos/not-a-constructor.js index 1de13988cc..f152a861c2 100644 --- a/test/built-ins/Math/cos/not-a-constructor.js +++ b/test/built-ins/Math/cos/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.cos), false, 'isConstructor(Math.cos) must r assert.throws(TypeError, () => { new Math.cos(); -}, '`new Math.cos()` throws TypeError'); +}); diff --git a/test/built-ins/Math/cosh/not-a-constructor.js b/test/built-ins/Math/cosh/not-a-constructor.js index d1c27bbb92..cd8c57b91c 100644 --- a/test/built-ins/Math/cosh/not-a-constructor.js +++ b/test/built-ins/Math/cosh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.cosh), false, 'isConstructor(Math.cosh) must assert.throws(TypeError, () => { new Math.cosh(); -}, '`new Math.cosh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/exp/not-a-constructor.js b/test/built-ins/Math/exp/not-a-constructor.js index 627ac218ff..4a8823bcd6 100644 --- a/test/built-ins/Math/exp/not-a-constructor.js +++ b/test/built-ins/Math/exp/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.exp), false, 'isConstructor(Math.exp) must r assert.throws(TypeError, () => { new Math.exp(); -}, '`new Math.exp()` throws TypeError'); +}); diff --git a/test/built-ins/Math/expm1/not-a-constructor.js b/test/built-ins/Math/expm1/not-a-constructor.js index aa1ec5f5ea..0e93c9b40c 100644 --- a/test/built-ins/Math/expm1/not-a-constructor.js +++ b/test/built-ins/Math/expm1/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.expm1), false, 'isConstructor(Math.expm1) mu assert.throws(TypeError, () => { new Math.expm1(); -}, '`new Math.expm1()` throws TypeError'); +}); diff --git a/test/built-ins/Math/floor/not-a-constructor.js b/test/built-ins/Math/floor/not-a-constructor.js index e6e816c378..a1d6dc45c5 100644 --- a/test/built-ins/Math/floor/not-a-constructor.js +++ b/test/built-ins/Math/floor/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.floor), false, 'isConstructor(Math.floor) mu assert.throws(TypeError, () => { new Math.floor(); -}, '`new Math.floor()` throws TypeError'); +}); diff --git a/test/built-ins/Math/fround/not-a-constructor.js b/test/built-ins/Math/fround/not-a-constructor.js index 307a77e8de..66196cf878 100644 --- a/test/built-ins/Math/fround/not-a-constructor.js +++ b/test/built-ins/Math/fround/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.fround), false, 'isConstructor(Math.fround) assert.throws(TypeError, () => { new Math.fround(); -}, '`new Math.fround()` throws TypeError'); +}); diff --git a/test/built-ins/Math/hypot/not-a-constructor.js b/test/built-ins/Math/hypot/not-a-constructor.js index 90c502222f..bb0e5169ab 100644 --- a/test/built-ins/Math/hypot/not-a-constructor.js +++ b/test/built-ins/Math/hypot/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.hypot), false, 'isConstructor(Math.hypot) mu assert.throws(TypeError, () => { new Math.hypot(); -}, '`new Math.hypot()` throws TypeError'); +}); diff --git a/test/built-ins/Math/imul/not-a-constructor.js b/test/built-ins/Math/imul/not-a-constructor.js index a7778acc51..8ad11f36ad 100644 --- a/test/built-ins/Math/imul/not-a-constructor.js +++ b/test/built-ins/Math/imul/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.imul), false, 'isConstructor(Math.imul) must assert.throws(TypeError, () => { new Math.imul(); -}, '`new Math.imul()` throws TypeError'); +}); diff --git a/test/built-ins/Math/log/not-a-constructor.js b/test/built-ins/Math/log/not-a-constructor.js index cc6fc9f873..cbe2fe28fd 100644 --- a/test/built-ins/Math/log/not-a-constructor.js +++ b/test/built-ins/Math/log/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.log), false, 'isConstructor(Math.log) must r assert.throws(TypeError, () => { new Math.log(); -}, '`new Math.log()` throws TypeError'); +}); diff --git a/test/built-ins/Math/log10/not-a-constructor.js b/test/built-ins/Math/log10/not-a-constructor.js index 2dd276a0fb..527596153e 100644 --- a/test/built-ins/Math/log10/not-a-constructor.js +++ b/test/built-ins/Math/log10/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.log10), false, 'isConstructor(Math.log10) mu assert.throws(TypeError, () => { new Math.log10(); -}, '`new Math.log10()` throws TypeError'); +}); diff --git a/test/built-ins/Math/log1p/not-a-constructor.js b/test/built-ins/Math/log1p/not-a-constructor.js index bfb7f5bc54..a8a31daac0 100644 --- a/test/built-ins/Math/log1p/not-a-constructor.js +++ b/test/built-ins/Math/log1p/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.log1p), false, 'isConstructor(Math.log1p) mu assert.throws(TypeError, () => { new Math.log1p(); -}, '`new Math.log1p()` throws TypeError'); +}); diff --git a/test/built-ins/Math/log2/not-a-constructor.js b/test/built-ins/Math/log2/not-a-constructor.js index 386acaac2a..e8c81edc21 100644 --- a/test/built-ins/Math/log2/not-a-constructor.js +++ b/test/built-ins/Math/log2/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.log2), false, 'isConstructor(Math.log2) must assert.throws(TypeError, () => { new Math.log2(); -}, '`new Math.log2()` throws TypeError'); +}); diff --git a/test/built-ins/Math/max/not-a-constructor.js b/test/built-ins/Math/max/not-a-constructor.js index 5a53a7d382..9a1a8569e6 100644 --- a/test/built-ins/Math/max/not-a-constructor.js +++ b/test/built-ins/Math/max/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.max), false, 'isConstructor(Math.max) must r assert.throws(TypeError, () => { new Math.max(); -}, '`new Math.max()` throws TypeError'); +}); diff --git a/test/built-ins/Math/min/not-a-constructor.js b/test/built-ins/Math/min/not-a-constructor.js index e5a77a1b64..ae759e9140 100644 --- a/test/built-ins/Math/min/not-a-constructor.js +++ b/test/built-ins/Math/min/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.min), false, 'isConstructor(Math.min) must r assert.throws(TypeError, () => { new Math.min(); -}, '`new Math.min()` throws TypeError'); +}); diff --git a/test/built-ins/Math/pow/not-a-constructor.js b/test/built-ins/Math/pow/not-a-constructor.js index 7ca5ac400d..87437db439 100644 --- a/test/built-ins/Math/pow/not-a-constructor.js +++ b/test/built-ins/Math/pow/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.pow), false, 'isConstructor(Math.pow) must r assert.throws(TypeError, () => { new Math.pow(); -}, '`new Math.pow()` throws TypeError'); +}); diff --git a/test/built-ins/Math/random/not-a-constructor.js b/test/built-ins/Math/random/not-a-constructor.js index 9dce5ebb91..996a429070 100644 --- a/test/built-ins/Math/random/not-a-constructor.js +++ b/test/built-ins/Math/random/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.random), false, 'isConstructor(Math.random) assert.throws(TypeError, () => { new Math.random(); -}, '`new Math.random()` throws TypeError'); +}); diff --git a/test/built-ins/Math/round/not-a-constructor.js b/test/built-ins/Math/round/not-a-constructor.js index 8021cf1f33..18ab6e1f8b 100644 --- a/test/built-ins/Math/round/not-a-constructor.js +++ b/test/built-ins/Math/round/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.round), false, 'isConstructor(Math.round) mu assert.throws(TypeError, () => { new Math.round(); -}, '`new Math.round()` throws TypeError'); +}); diff --git a/test/built-ins/Math/sign/not-a-constructor.js b/test/built-ins/Math/sign/not-a-constructor.js index a6706b1c86..fa5ca3b642 100644 --- a/test/built-ins/Math/sign/not-a-constructor.js +++ b/test/built-ins/Math/sign/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.sign), false, 'isConstructor(Math.sign) must assert.throws(TypeError, () => { new Math.sign(); -}, '`new Math.sign()` throws TypeError'); +}); diff --git a/test/built-ins/Math/sin/not-a-constructor.js b/test/built-ins/Math/sin/not-a-constructor.js index d3a124ee89..b9f8c1886f 100644 --- a/test/built-ins/Math/sin/not-a-constructor.js +++ b/test/built-ins/Math/sin/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.sin), false, 'isConstructor(Math.sin) must r assert.throws(TypeError, () => { new Math.sin(); -}, '`new Math.sin()` throws TypeError'); +}); diff --git a/test/built-ins/Math/sinh/not-a-constructor.js b/test/built-ins/Math/sinh/not-a-constructor.js index c5c9a1cb8b..d868d7266a 100644 --- a/test/built-ins/Math/sinh/not-a-constructor.js +++ b/test/built-ins/Math/sinh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.sinh), false, 'isConstructor(Math.sinh) must assert.throws(TypeError, () => { new Math.sinh(); -}, '`new Math.sinh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/sqrt/not-a-constructor.js b/test/built-ins/Math/sqrt/not-a-constructor.js index a74a165165..9dcc8ca659 100644 --- a/test/built-ins/Math/sqrt/not-a-constructor.js +++ b/test/built-ins/Math/sqrt/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.sqrt), false, 'isConstructor(Math.sqrt) must assert.throws(TypeError, () => { new Math.sqrt(); -}, '`new Math.sqrt()` throws TypeError'); +}); diff --git a/test/built-ins/Math/tan/not-a-constructor.js b/test/built-ins/Math/tan/not-a-constructor.js index 39343eabb5..b19087a2be 100644 --- a/test/built-ins/Math/tan/not-a-constructor.js +++ b/test/built-ins/Math/tan/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.tan), false, 'isConstructor(Math.tan) must r assert.throws(TypeError, () => { new Math.tan(); -}, '`new Math.tan()` throws TypeError'); +}); diff --git a/test/built-ins/Math/tanh/not-a-constructor.js b/test/built-ins/Math/tanh/not-a-constructor.js index 654287259e..dfedc1480d 100644 --- a/test/built-ins/Math/tanh/not-a-constructor.js +++ b/test/built-ins/Math/tanh/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.tanh), false, 'isConstructor(Math.tanh) must assert.throws(TypeError, () => { new Math.tanh(); -}, '`new Math.tanh()` throws TypeError'); +}); diff --git a/test/built-ins/Math/trunc/not-a-constructor.js b/test/built-ins/Math/trunc/not-a-constructor.js index 8f05f27159..2fbbdc4129 100644 --- a/test/built-ins/Math/trunc/not-a-constructor.js +++ b/test/built-ins/Math/trunc/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Math.trunc), false, 'isConstructor(Math.trunc) mu assert.throws(TypeError, () => { new Math.trunc(); -}, '`new Math.trunc()` throws TypeError'); +}); diff --git a/test/built-ins/Number/isFinite/not-a-constructor.js b/test/built-ins/Number/isFinite/not-a-constructor.js index 2e98a09208..18343cc72e 100644 --- a/test/built-ins/Number/isFinite/not-a-constructor.js +++ b/test/built-ins/Number/isFinite/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.isFinite), false, 'isConstructor(Number.is assert.throws(TypeError, () => { new Number.isFinite(); -}, '`new Number.isFinite()` throws TypeError'); +}); diff --git a/test/built-ins/Number/isInteger/not-a-constructor.js b/test/built-ins/Number/isInteger/not-a-constructor.js index 38afae3fbc..6a4ebe18d6 100644 --- a/test/built-ins/Number/isInteger/not-a-constructor.js +++ b/test/built-ins/Number/isInteger/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.isInteger), false, 'isConstructor(Number.i assert.throws(TypeError, () => { new Number.isInteger(); -}, '`new Number.isInteger()` throws TypeError'); +}); diff --git a/test/built-ins/Number/isNaN/not-a-constructor.js b/test/built-ins/Number/isNaN/not-a-constructor.js index a08feb4889..57f4584146 100644 --- a/test/built-ins/Number/isNaN/not-a-constructor.js +++ b/test/built-ins/Number/isNaN/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.isNaN), false, 'isConstructor(Number.isNaN assert.throws(TypeError, () => { new Number.isNaN(); -}, '`new Number.isNaN()` throws TypeError'); +}); diff --git a/test/built-ins/Number/isSafeInteger/not-a-constructor.js b/test/built-ins/Number/isSafeInteger/not-a-constructor.js index 1a12c01a7f..da6b090bbb 100644 --- a/test/built-ins/Number/isSafeInteger/not-a-constructor.js +++ b/test/built-ins/Number/isSafeInteger/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.isSafeInteger), false, 'isConstructor(Numb assert.throws(TypeError, () => { new Number.isSafeInteger(); -}, '`new Number.isSafeInteger()` throws TypeError'); +}); diff --git a/test/built-ins/Number/parseFloat/not-a-constructor.js b/test/built-ins/Number/parseFloat/not-a-constructor.js index 47c8d66ff6..b38f4fb4f1 100644 --- a/test/built-ins/Number/parseFloat/not-a-constructor.js +++ b/test/built-ins/Number/parseFloat/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.parseFloat), false, 'isConstructor(Number. assert.throws(TypeError, () => { new Number.parseFloat(); -}, '`new Number.parseFloat()` throws TypeError'); +}); diff --git a/test/built-ins/Number/parseInt/not-a-constructor.js b/test/built-ins/Number/parseInt/not-a-constructor.js index 01a45b57de..6c68b2b6dd 100644 --- a/test/built-ins/Number/parseInt/not-a-constructor.js +++ b/test/built-ins/Number/parseInt/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Number.parseInt), false, 'isConstructor(Number.pa assert.throws(TypeError, () => { new Number.parseInt(); -}, '`new Number.parseInt()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/toExponential/not-a-constructor.js b/test/built-ins/Number/prototype/toExponential/not-a-constructor.js index 0b527a0da7..56d6e83201 100644 --- a/test/built-ins/Number/prototype/toExponential/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toExponential/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.toExponential(); -}, '`new Number.prototype.toExponential()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/toFixed/not-a-constructor.js b/test/built-ins/Number/prototype/toFixed/not-a-constructor.js index cac5784b5b..915a52fa16 100644 --- a/test/built-ins/Number/prototype/toFixed/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toFixed/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.toFixed(); -}, '`new Number.prototype.toFixed()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js index 3def72b7a6..cc998dfacd 100644 --- a/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.toLocaleString(); -}, '`new Number.prototype.toLocaleString()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js b/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js index a53b9c41a6..aad7f5ff75 100644 --- a/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.toPrecision(); -}, '`new Number.prototype.toPrecision()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/toString/not-a-constructor.js b/test/built-ins/Number/prototype/toString/not-a-constructor.js index 67daa524ca..2312bc09aa 100644 --- a/test/built-ins/Number/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.toString(); -}, '`new Number.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Number/prototype/valueOf/not-a-constructor.js b/test/built-ins/Number/prototype/valueOf/not-a-constructor.js index c7ed674693..017f3fdc5c 100644 --- a/test/built-ins/Number/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Number/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Number.prototype.valueOf(); -}, '`new Number.prototype.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/Object/assign/not-a-constructor.js b/test/built-ins/Object/assign/not-a-constructor.js index f2e0f85385..b2cd6390b5 100644 --- a/test/built-ins/Object/assign/not-a-constructor.js +++ b/test/built-ins/Object/assign/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.assign), false, 'isConstructor(Object.assi assert.throws(TypeError, () => { new Object.assign({}); -}, '`new Object.assign({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/create/not-a-constructor.js b/test/built-ins/Object/create/not-a-constructor.js index cb5d71fe8e..3545b5953e 100644 --- a/test/built-ins/Object/create/not-a-constructor.js +++ b/test/built-ins/Object/create/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.create), false, 'isConstructor(Object.crea assert.throws(TypeError, () => { new Object.create(null); -}, '`new Object.create(null)` throws TypeError'); +}); diff --git a/test/built-ins/Object/defineProperties/not-a-constructor.js b/test/built-ins/Object/defineProperties/not-a-constructor.js index c706111611..540f566871 100644 --- a/test/built-ins/Object/defineProperties/not-a-constructor.js +++ b/test/built-ins/Object/defineProperties/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.defineProperties({}, {}); -}, '`new Object.defineProperties({}, {})` throws TypeError'); +}); diff --git a/test/built-ins/Object/defineProperty/not-a-constructor.js b/test/built-ins/Object/defineProperty/not-a-constructor.js index 161b10dc1a..57522e19d4 100644 --- a/test/built-ins/Object/defineProperty/not-a-constructor.js +++ b/test/built-ins/Object/defineProperty/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.defineProperty({}, '', {}); -}, '`new Object.defineProperty({}, \'\', {})` throws TypeError'); +}); diff --git a/test/built-ins/Object/entries/not-a-constructor.js b/test/built-ins/Object/entries/not-a-constructor.js index 534f224b23..ced992ac3e 100644 --- a/test/built-ins/Object/entries/not-a-constructor.js +++ b/test/built-ins/Object/entries/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.entries), false, 'isConstructor(Object.ent assert.throws(TypeError, () => { new Object.entries({}); -}, '`new Object.entries({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/freeze/not-a-constructor.js b/test/built-ins/Object/freeze/not-a-constructor.js index df3fa4f306..ff9fdbc8a9 100644 --- a/test/built-ins/Object/freeze/not-a-constructor.js +++ b/test/built-ins/Object/freeze/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.freeze), false, 'isConstructor(Object.free assert.throws(TypeError, () => { new Object.freeze({}); -}, '`new Object.freeze({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/fromEntries/not-a-constructor.js b/test/built-ins/Object/fromEntries/not-a-constructor.js index 891f5fd181..b95219d5e5 100644 --- a/test/built-ins/Object/fromEntries/not-a-constructor.js +++ b/test/built-ins/Object/fromEntries/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.fromEntries), false, 'isConstructor(Object assert.throws(TypeError, () => { new Object.fromEntries([]); -}, '`new Object.fromEntries([])` throws TypeError'); +}); diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js b/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js index 318fd4ce58..72936dd871 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getOwnPropertyDescriptor({}, ''); -}, '`new Object.getOwnPropertyDescriptor({}, \'\')` throws TypeError'); +}); diff --git a/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js b/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js index a4b02ca412..422cd3978c 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getOwnPropertyDescriptors({}); -}, '`new Object.getOwnPropertyDescriptors({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js b/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js index 48805a1758..505e3acd04 100644 --- a/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getOwnPropertyNames({}); -}, '`new Object.getOwnPropertyNames({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js b/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js index 323b9f6b3f..bd13826e0e 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getOwnPropertySymbols({}); -}, '`new Object.getOwnPropertySymbols({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/getPrototypeOf/not-a-constructor.js b/test/built-ins/Object/getPrototypeOf/not-a-constructor.js index 020ebb30bb..2652dd93c3 100644 --- a/test/built-ins/Object/getPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/getPrototypeOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getPrototypeOf({}); -}, '`new Object.getPrototypeOf({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/hasOwn/not-a-constructor.js b/test/built-ins/Object/hasOwn/not-a-constructor.js index 901d94b32e..8c4d2cfec2 100644 --- a/test/built-ins/Object/hasOwn/not-a-constructor.js +++ b/test/built-ins/Object/hasOwn/not-a-constructor.js @@ -30,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.hasOwn(''); -}, '`new Object.hasOwn(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/Object/is/not-a-constructor.js b/test/built-ins/Object/is/not-a-constructor.js index a032f43368..68ee0593f7 100644 --- a/test/built-ins/Object/is/not-a-constructor.js +++ b/test/built-ins/Object/is/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.is), false, 'isConstructor(Object.is) must assert.throws(TypeError, () => { new Object.is(0, 0); -}, '`new Object.is(0, 0)` throws TypeError'); +}); diff --git a/test/built-ins/Object/isExtensible/not-a-constructor.js b/test/built-ins/Object/isExtensible/not-a-constructor.js index 9b50b5854e..e4508c8c41 100644 --- a/test/built-ins/Object/isExtensible/not-a-constructor.js +++ b/test/built-ins/Object/isExtensible/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.isExtensible), false, 'isConstructor(Objec assert.throws(TypeError, () => { new Object.isExtensible({}); -}, '`new Object.isExtensible({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/isFrozen/not-a-constructor.js b/test/built-ins/Object/isFrozen/not-a-constructor.js index 2f5f503a16..239e494464 100644 --- a/test/built-ins/Object/isFrozen/not-a-constructor.js +++ b/test/built-ins/Object/isFrozen/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.isFrozen), false, 'isConstructor(Object.is assert.throws(TypeError, () => { new Object.isFrozen({}); -}, '`new Object.isFrozen({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/isSealed/not-a-constructor.js b/test/built-ins/Object/isSealed/not-a-constructor.js index 8a550989f1..88e5e91d36 100644 --- a/test/built-ins/Object/isSealed/not-a-constructor.js +++ b/test/built-ins/Object/isSealed/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.isSealed), false, 'isConstructor(Object.is assert.throws(TypeError, () => { new Object.isSealed({}); -}, '`new Object.isSealed({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/keys/not-a-constructor.js b/test/built-ins/Object/keys/not-a-constructor.js index b873f8a1b6..ff980ed499 100644 --- a/test/built-ins/Object/keys/not-a-constructor.js +++ b/test/built-ins/Object/keys/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.keys), false, 'isConstructor(Object.keys) assert.throws(TypeError, () => { new Object.keys({}); -}, '`new Object.keys({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/preventExtensions/not-a-constructor.js b/test/built-ins/Object/preventExtensions/not-a-constructor.js index 04d51dc717..bc4a0d75d9 100644 --- a/test/built-ins/Object/preventExtensions/not-a-constructor.js +++ b/test/built-ins/Object/preventExtensions/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.preventExtensions({}); -}, '`new Object.preventExtensions({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js b/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js index 2611407aa9..12749f19ac 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.hasOwnProperty(''); -}, '`new Object.prototype.hasOwnProperty(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js b/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js index f04cd71fbe..3971a5ad6f 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.isPrototypeOf({}); -}, '`new Object.prototype.isPrototypeOf({})` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js b/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js index 9006098f1c..dc347ef17c 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.propertyIsEnumerable(''); -}, '`new Object.prototype.propertyIsEnumerable(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js index f5ee600503..d28d1ae722 100644 --- a/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.toLocaleString(''); -}, '`new Object.prototype.toLocaleString(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/toString/not-a-constructor.js b/test/built-ins/Object/prototype/toString/not-a-constructor.js index f9f86e4810..6d6d6b46d4 100644 --- a/test/built-ins/Object/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Object/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.toString(); -}, '`new Object.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Object/prototype/valueOf/not-a-constructor.js b/test/built-ins/Object/prototype/valueOf/not-a-constructor.js index 380aa7a29f..7cf0196d54 100644 --- a/test/built-ins/Object/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Object/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.prototype.valueOf(); -}, '`new Object.prototype.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/Object/seal/not-a-constructor.js b/test/built-ins/Object/seal/not-a-constructor.js index 1c6e7a0077..9165a469d7 100644 --- a/test/built-ins/Object/seal/not-a-constructor.js +++ b/test/built-ins/Object/seal/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.seal), false, 'isConstructor(Object.seal) assert.throws(TypeError, () => { new Object.seal(); -}, '`new Object.seal()` throws TypeError'); +}); diff --git a/test/built-ins/Object/setPrototypeOf/not-a-constructor.js b/test/built-ins/Object/setPrototypeOf/not-a-constructor.js index a411a6312c..8f4c47a68c 100644 --- a/test/built-ins/Object/setPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/setPrototypeOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.setPrototypeOf({}, {}); -}, '`new Object.setPrototypeOf({}, {})` throws TypeError'); +}); diff --git a/test/built-ins/Object/values/not-a-constructor.js b/test/built-ins/Object/values/not-a-constructor.js index a1e909c5f4..4e3c87c009 100644 --- a/test/built-ins/Object/values/not-a-constructor.js +++ b/test/built-ins/Object/values/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Object.values), false, 'isConstructor(Object.valu assert.throws(TypeError, () => { new Object.values({}); -}, '`new Object.values({})` throws TypeError'); +}); diff --git a/test/built-ins/Promise/all/not-a-constructor.js b/test/built-ins/Promise/all/not-a-constructor.js index f4dc6ea530..3f665b34f7 100644 --- a/test/built-ins/Promise/all/not-a-constructor.js +++ b/test/built-ins/Promise/all/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.all), false, 'isConstructor(Promise.all) assert.throws(TypeError, () => { new Promise.all([]); -}, '`new Promise.all([])` throws TypeError'); +}); diff --git a/test/built-ins/Promise/allSettled/not-a-constructor.js b/test/built-ins/Promise/allSettled/not-a-constructor.js index 69daf018c2..cc6720fbc9 100644 --- a/test/built-ins/Promise/allSettled/not-a-constructor.js +++ b/test/built-ins/Promise/allSettled/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.allSettled), false, 'isConstructor(Promis assert.throws(TypeError, () => { new Promise.allSettled(); -}, '`new Promise.allSettled()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/any/not-a-constructor.js b/test/built-ins/Promise/any/not-a-constructor.js index 85bd0685a9..be8c1ccd26 100644 --- a/test/built-ins/Promise/any/not-a-constructor.js +++ b/test/built-ins/Promise/any/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.any), false, 'isConstructor(Promise.any) assert.throws(TypeError, () => { new Promise.any([1]); -}, '`new Promise.any([1])` throws TypeError'); +}); diff --git a/test/built-ins/Promise/create-resolving-functions-reject.js b/test/built-ins/Promise/create-resolving-functions-reject.js index c9df1793b9..ea22df274c 100644 --- a/test/built-ins/Promise/create-resolving-functions-reject.js +++ b/test/built-ins/Promise/create-resolving-functions-reject.js @@ -23,7 +23,7 @@ Promise.prototype.then = function(resolve, reject) { assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false'); assert.throws(TypeError, () => { new reject(); - }, '`new reject()` throws TypeError'); + }); assert.sameValue(reject.length, 1, 'The value of reject.length is 1'); assert.sameValue(reject.name, '', 'The value of reject.name is ""'); diff --git a/test/built-ins/Promise/create-resolving-functions-resolve.js b/test/built-ins/Promise/create-resolving-functions-resolve.js index 7baab0c50e..4b9abc431b 100644 --- a/test/built-ins/Promise/create-resolving-functions-resolve.js +++ b/test/built-ins/Promise/create-resolving-functions-resolve.js @@ -23,7 +23,7 @@ Promise.prototype.then = function(resolve, reject) { assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false'); assert.throws(TypeError, () => { new resolve(); - }, '`new resolve()` throws TypeError'); + }); assert.sameValue(resolve.length, 1, 'The value of resolve.length is 1'); assert.sameValue(resolve.name, '', 'The value of resolve.name is ""'); diff --git a/test/built-ins/Promise/executor-function-not-a-constructor.js b/test/built-ins/Promise/executor-function-not-a-constructor.js index 2db5ff2a97..ac7beec390 100644 --- a/test/built-ins/Promise/executor-function-not-a-constructor.js +++ b/test/built-ins/Promise/executor-function-not-a-constructor.js @@ -30,5 +30,5 @@ assert.sameValue(isConstructor(executorFunction), false, 'isConstructor(executor assert.throws(TypeError, () => { new executorFunction(); -}, '`new executorFunction()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/prototype/catch/not-a-constructor.js b/test/built-ins/Promise/prototype/catch/not-a-constructor.js index 2e56c34ba5..32e04e8713 100644 --- a/test/built-ins/Promise/prototype/catch/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/catch/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let p = new Promise(() => {}); new p.catch(); -}, '`let p = new Promise(() => {}); new p.catch()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js index 11fc3ff0ba..025d12d577 100644 --- a/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js +++ b/test/built-ins/Promise/prototype/finally/invokes-then-with-function.js @@ -48,7 +48,7 @@ assert.sameValue(resolve.name, '', 'The value of resolve.name is ""'); assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false'); assert.throws(TypeError, () => { new resolve(); -}, '`new resolve()` throws TypeError'); +}); assert.sameValue( @@ -62,6 +62,6 @@ assert.sameValue(reject.name, '', 'The value of reject.name is ""'); assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false'); assert.throws(TypeError, () => { new reject(); -}, '`new reject()` throws TypeError'); +}); assert.sameValue(result, returnValue, 'The value of `result` is expected to equal the value of returnValue'); diff --git a/test/built-ins/Promise/prototype/finally/not-a-constructor.js b/test/built-ins/Promise/prototype/finally/not-a-constructor.js index edb3f98818..af6abb327c 100644 --- a/test/built-ins/Promise/prototype/finally/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/finally/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let p = new Promise(() => {}); new p.finally(); -}, '`let p = new Promise(() => {}); new p.finally()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js index 76ba16dfaf..1d9bacc8aa 100644 --- a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js +++ b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js @@ -58,7 +58,7 @@ Promise.prototype.then = function(resolve, reject) { assert.sameValue(isConstructor(reject), false, 'isConstructor(reject) must return false'); assert.throws(TypeError, () => { new reject(); - }, '`new reject()` throws TypeError'); + }); assert.sameValue(arguments.length, 2, '`then` invoked with two arguments'); } diff --git a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js index 3749eeac12..aab2fd1645 100644 --- a/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js +++ b/test/built-ins/Promise/prototype/finally/resolved-observable-then-calls-argument.js @@ -34,7 +34,7 @@ Promise.prototype.then = function(resolve) { assert.sameValue(isConstructor(resolve), false, 'isConstructor(resolve) must return false'); assert.throws(TypeError, () => { new resolve(); - }, '`new resolve()` throws TypeError'); + }); assert.sameValue( resolve.length, diff --git a/test/built-ins/Promise/prototype/then/not-a-constructor.js b/test/built-ins/Promise/prototype/then/not-a-constructor.js index d961a6513b..2e5e01c463 100644 --- a/test/built-ins/Promise/prototype/then/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/then/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let p = new Promise(() => {}); new p.then(); -}, '`let p = new Promise(() => {}); new p.then()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/race/not-a-constructor.js b/test/built-ins/Promise/race/not-a-constructor.js index de1ee65e78..50bf514863 100644 --- a/test/built-ins/Promise/race/not-a-constructor.js +++ b/test/built-ins/Promise/race/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.race), false, 'isConstructor(Promise.race assert.throws(TypeError, () => { new Promise.race([]); -}, '`new Promise.race([])` throws TypeError'); +}); diff --git a/test/built-ins/Promise/reject/not-a-constructor.js b/test/built-ins/Promise/reject/not-a-constructor.js index 2b394dc1e3..1a825f02ed 100644 --- a/test/built-ins/Promise/reject/not-a-constructor.js +++ b/test/built-ins/Promise/reject/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.reject), false, 'isConstructor(Promise.re assert.throws(TypeError, () => { new Promise.reject(); -}, '`new Promise.reject()` throws TypeError'); +}); diff --git a/test/built-ins/Promise/resolve/not-a-constructor.js b/test/built-ins/Promise/resolve/not-a-constructor.js index a75ccd6ad2..253d1ec30e 100644 --- a/test/built-ins/Promise/resolve/not-a-constructor.js +++ b/test/built-ins/Promise/resolve/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Promise.resolve), false, 'isConstructor(Promise.r assert.throws(TypeError, () => { new Promise.resolve(); -}, '`new Promise.resolve()` throws TypeError'); +}); diff --git a/test/built-ins/Proxy/create-target-is-not-a-constructor.js b/test/built-ins/Proxy/create-target-is-not-a-constructor.js index a07fad743f..10909767c8 100644 --- a/test/built-ins/Proxy/create-target-is-not-a-constructor.js +++ b/test/built-ins/Proxy/create-target-is-not-a-constructor.js @@ -28,4 +28,4 @@ proxy(); // the Proxy object is callable assert.sameValue(isConstructor(proxy), false, 'isConstructor(proxy) must return false'); assert.throws(TypeError, () => { new proxy(); -}, '`new proxy()` throws TypeError'); +}); diff --git a/test/built-ins/Proxy/revocable/not-a-constructor.js b/test/built-ins/Proxy/revocable/not-a-constructor.js index 239917f51e..f3ad37ca7b 100644 --- a/test/built-ins/Proxy/revocable/not-a-constructor.js +++ b/test/built-ins/Proxy/revocable/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Proxy.revocable), false, 'isConstructor(Proxy.rev assert.throws(TypeError, () => { new Proxy.revocable({}, {}); -}, '`new Proxy.revocable({}, {})` throws TypeError'); +}); diff --git a/test/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js b/test/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js index d8cbfc37a6..dc11ab2686 100644 --- a/test/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js +++ b/test/built-ins/Proxy/revocable/revocation-function-not-a-constructor.js @@ -23,6 +23,6 @@ assert.sameValue( assert.sameValue(isConstructor(revocationFunction), false, 'isConstructor(revocationFunction) must return false'); assert.throws(TypeError, () => { new revocationFunction(); -}, '`new revocationFunction()` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/apply/not-a-constructor.js b/test/built-ins/Reflect/apply/not-a-constructor.js index b2811c8e56..207d36eab5 100644 --- a/test/built-ins/Reflect/apply/not-a-constructor.js +++ b/test/built-ins/Reflect/apply/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.apply), false, 'isConstructor(Reflect.app assert.throws(TypeError, () => { new Reflect.apply(() => {}, undefined, []); -}, '`new Reflect.apply(() => {}, undefined, [])` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/construct/not-a-constructor.js b/test/built-ins/Reflect/construct/not-a-constructor.js index e43abfe6dc..bd33686983 100644 --- a/test/built-ins/Reflect/construct/not-a-constructor.js +++ b/test/built-ins/Reflect/construct/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.construct), false, 'isConstructor(Reflect assert.throws(TypeError, () => { new Reflect.construct(Function, [], Function); -}, '`new Reflect.construct(Function, [], Function)` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/defineProperty/not-a-constructor.js b/test/built-ins/Reflect/defineProperty/not-a-constructor.js index a65da86ecd..1db37c301e 100644 --- a/test/built-ins/Reflect/defineProperty/not-a-constructor.js +++ b/test/built-ins/Reflect/defineProperty/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.defineProperty({}, ''); -}, '`new Reflect.defineProperty({}, \'\')` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/deleteProperty/not-a-constructor.js b/test/built-ins/Reflect/deleteProperty/not-a-constructor.js index 6fb9dfb569..3b79fa5bbf 100644 --- a/test/built-ins/Reflect/deleteProperty/not-a-constructor.js +++ b/test/built-ins/Reflect/deleteProperty/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.deleteProperty({}, ''); -}, '`new Reflect.deleteProperty({}, \'\')` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/get/not-a-constructor.js b/test/built-ins/Reflect/get/not-a-constructor.js index 9f793ba174..7bd375557e 100644 --- a/test/built-ins/Reflect/get/not-a-constructor.js +++ b/test/built-ins/Reflect/get/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.get), false, 'isConstructor(Reflect.get) assert.throws(TypeError, () => { new Reflect.get({}, ''); -}, '`new Reflect.get({}, \'\')` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js b/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js index cccc405117..e05411bf67 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.getOwnPropertyDescriptor({}, ''); -}, '`new Reflect.getOwnPropertyDescriptor({}, \'\')` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js b/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js index bcb15a7343..b6cd01f11e 100644 --- a/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.getPrototypeOf({}); -}, '`new Reflect.getPrototypeOf({})` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/has/not-a-constructor.js b/test/built-ins/Reflect/has/not-a-constructor.js index c91a336f08..f397677e49 100644 --- a/test/built-ins/Reflect/has/not-a-constructor.js +++ b/test/built-ins/Reflect/has/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.has), false, 'isConstructor(Reflect.has) assert.throws(TypeError, () => { new Reflect.has(); -}, '`new Reflect.has()` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/isExtensible/not-a-constructor.js b/test/built-ins/Reflect/isExtensible/not-a-constructor.js index 3b572d8f70..9d443aac1b 100644 --- a/test/built-ins/Reflect/isExtensible/not-a-constructor.js +++ b/test/built-ins/Reflect/isExtensible/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.isExtensible), false, 'isConstructor(Refl assert.throws(TypeError, () => { new Reflect.isExtensible({}); -}, '`new Reflect.isExtensible({})` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/ownKeys/not-a-constructor.js b/test/built-ins/Reflect/ownKeys/not-a-constructor.js index d4c2f374bd..949ee3fa74 100644 --- a/test/built-ins/Reflect/ownKeys/not-a-constructor.js +++ b/test/built-ins/Reflect/ownKeys/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.ownKeys), false, 'isConstructor(Reflect.o assert.throws(TypeError, () => { new Reflect.ownKeys({}); -}, '`new Reflect.ownKeys({})` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/preventExtensions/not-a-constructor.js b/test/built-ins/Reflect/preventExtensions/not-a-constructor.js index e5ffeddf09..80d1761a43 100644 --- a/test/built-ins/Reflect/preventExtensions/not-a-constructor.js +++ b/test/built-ins/Reflect/preventExtensions/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.preventExtensions({}); -}, '`new Reflect.preventExtensions({})` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/set/not-a-constructor.js b/test/built-ins/Reflect/set/not-a-constructor.js index 4a2aed58c8..f7e32f8230 100644 --- a/test/built-ins/Reflect/set/not-a-constructor.js +++ b/test/built-ins/Reflect/set/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Reflect.set), false, 'isConstructor(Reflect.set) assert.throws(TypeError, () => { new Reflect.set({}); -}, '`new Reflect.set({})` throws TypeError'); +}); diff --git a/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js b/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js index f6e35bbb4f..c68b68c2d8 100644 --- a/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new Reflect.setPrototypeOf({}, {}); -}, '`new Reflect.setPrototypeOf({}, {})` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js b/test/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js index 55a8d64a06..a3a45fcc04 100644 --- a/test/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/Symbol.match/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re[Symbol.match](); -}, '`let re = new RegExp(\'\'); new re[Symbol.match]()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js b/test/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js index a9ce4c3313..5d0a82c988 100644 --- a/test/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/Symbol.matchAll/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re[Symbol.matchAll](); -}, '`let re = new RegExp(\'\'); new re[Symbol.matchAll]()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/not-a-constructor.js b/test/built-ins/RegExp/prototype/Symbol.replace/not-a-constructor.js index 27efa6ba94..69593a44ea 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re[Symbol.replace](); -}, '`let re = new RegExp(\'\'); new re[Symbol.replace]()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.search/not-a-constructor.js b/test/built-ins/RegExp/prototype/Symbol.search/not-a-constructor.js index 40bcd94edc..a0d17380d6 100644 --- a/test/built-ins/RegExp/prototype/Symbol.search/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/Symbol.search/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re[Symbol.search](); -}, '`let re = new RegExp(\'\'); new re[Symbol.search]()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/Symbol.split/not-a-constructor.js b/test/built-ins/RegExp/prototype/Symbol.split/not-a-constructor.js index 04d5ab6b2f..0c659cbf75 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re[Symbol.split](); -}, '`let re = new RegExp(\'\'); new re[Symbol.split]()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/exec/not-a-constructor.js b/test/built-ins/RegExp/prototype/exec/not-a-constructor.js index 580c05ab33..781c13f761 100644 --- a/test/built-ins/RegExp/prototype/exec/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/exec/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re.exec(); -}, '`let re = new RegExp(\'\'); new re.exec()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/test/not-a-constructor.js b/test/built-ins/RegExp/prototype/test/not-a-constructor.js index a32652cbb7..21a1745a2e 100644 --- a/test/built-ins/RegExp/prototype/test/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/test/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re.test(); -}, '`let re = new RegExp(\'\'); new re.test()` throws TypeError'); +}); diff --git a/test/built-ins/RegExp/prototype/toString/not-a-constructor.js b/test/built-ins/RegExp/prototype/toString/not-a-constructor.js index 44e260bba6..1b3a48347b 100644 --- a/test/built-ins/RegExp/prototype/toString/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let re = new RegExp(''); new re.toString(); -}, '`let re = new RegExp(\'\'); new re.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js b/test/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js index 42a7102d3e..fff2ddaeb5 100644 --- a/test/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js +++ b/test/built-ins/Set/prototype/Symbol.iterator/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s[Symbol.iterator](); -}, '`let s = new Set([]); new s[Symbol.iterator]()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/add/not-a-constructor.js b/test/built-ins/Set/prototype/add/not-a-constructor.js index 382480da16..6af1286e5d 100644 --- a/test/built-ins/Set/prototype/add/not-a-constructor.js +++ b/test/built-ins/Set/prototype/add/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Set.prototype.add), false, 'isConstructor(Set.pro assert.throws(TypeError, () => { let s = new Set([]); new s.add(); -}, '`let s = new Set([]); new s.add()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/clear/not-a-constructor.js b/test/built-ins/Set/prototype/clear/not-a-constructor.js index a77944c3c1..7ae392a423 100644 --- a/test/built-ins/Set/prototype/clear/not-a-constructor.js +++ b/test/built-ins/Set/prototype/clear/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Set.prototype.clear), false, 'isConstructor(Set.p assert.throws(TypeError, () => { let s = new Set([]); new s.clear(); -}, '`let s = new Set([]); new s.clear()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/delete/not-a-constructor.js b/test/built-ins/Set/prototype/delete/not-a-constructor.js index 2f8af10509..8f319be12b 100644 --- a/test/built-ins/Set/prototype/delete/not-a-constructor.js +++ b/test/built-ins/Set/prototype/delete/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Set.prototype.delete), false, 'isConstructor(Set. assert.throws(TypeError, () => { let s = new Set([]); new s.delete(); -}, '`let s = new Set([]); new s.delete()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/difference/not-a-constructor.js b/test/built-ins/Set/prototype/difference/not-a-constructor.js index dcfaf84765..edee9edd68 100644 --- a/test/built-ins/Set/prototype/difference/not-a-constructor.js +++ b/test/built-ins/Set/prototype/difference/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.difference(); - }, - "`new Set.prototype.difference()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/entries/not-a-constructor.js b/test/built-ins/Set/prototype/entries/not-a-constructor.js index 2bf6867dac..da2e49f84f 100644 --- a/test/built-ins/Set/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Set/prototype/entries/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s.entries(); -}, '`let s = new Set([]); new s.entries()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/forEach/not-a-constructor.js b/test/built-ins/Set/prototype/forEach/not-a-constructor.js index d62c98fa41..3f54ab5815 100644 --- a/test/built-ins/Set/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Set/prototype/forEach/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let s = new Set([]); new s.forEach(() => {}); -}, '`let s = new Set([]); new s.forEach(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/has/not-a-constructor.js b/test/built-ins/Set/prototype/has/not-a-constructor.js index 6a3d35e64e..fcfeaa37ba 100644 --- a/test/built-ins/Set/prototype/has/not-a-constructor.js +++ b/test/built-ins/Set/prototype/has/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Set.prototype.has), false, 'isConstructor(Set.pro assert.throws(TypeError, () => { let s = new Set([]); new s.has(); -}, '`let s = new Set([]); new s.has()` throws TypeError'); +}); diff --git a/test/built-ins/Set/prototype/intersection/not-a-constructor.js b/test/built-ins/Set/prototype/intersection/not-a-constructor.js index 44c614f88b..87776528c7 100644 --- a/test/built-ins/Set/prototype/intersection/not-a-constructor.js +++ b/test/built-ins/Set/prototype/intersection/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.intersection(); - }, - "`new Set.prototype.intersection()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js b/test/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js index 98345917c3..466775874f 100644 --- a/test/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js +++ b/test/built-ins/Set/prototype/isDisjointFrom/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.isDisjointFrom(); - }, - "`new Set.prototype.isDisjointFrom()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js b/test/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js index 27f90f1ac6..35beb58701 100644 --- a/test/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js +++ b/test/built-ins/Set/prototype/isSubsetOf/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.isSubsetOf(); - }, - "`new Set.prototype.isSubsetOf()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js b/test/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js index 924cea71ca..69d9668ff5 100644 --- a/test/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js +++ b/test/built-ins/Set/prototype/isSupersetOf/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.isSupersetOf(); - }, - "`new Set.prototype.isSupersetOf()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js b/test/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js index 81e19f00e3..53b5a0f09e 100644 --- a/test/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js +++ b/test/built-ins/Set/prototype/symmetricDifference/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.symmetricDifference(); - }, - "`new Set.prototype.symmetricDifference()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/union/not-a-constructor.js b/test/built-ins/Set/prototype/union/not-a-constructor.js index d27e4cda5e..f8449cbb22 100644 --- a/test/built-ins/Set/prototype/union/not-a-constructor.js +++ b/test/built-ins/Set/prototype/union/not-a-constructor.js @@ -17,6 +17,4 @@ assert.throws( TypeError, () => { new Set.prototype.union(); - }, - "`new Set.prototype.union()` throws TypeError" -); + }); diff --git a/test/built-ins/Set/prototype/values/not-a-constructor.js b/test/built-ins/Set/prototype/values/not-a-constructor.js index 8eb928e23c..18c787ea95 100644 --- a/test/built-ins/Set/prototype/values/not-a-constructor.js +++ b/test/built-ins/Set/prototype/values/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Set.prototype.values), false, 'isConstructor(Set. assert.throws(TypeError, () => { let s = new Set([]); new s.values(); -}, '`let s = new Set([]); new s.values()` throws TypeError'); +}); diff --git a/test/built-ins/ShadowRealm/prototype/evaluate/not-constructor.js b/test/built-ins/ShadowRealm/prototype/evaluate/not-constructor.js index 6a2c3fb78e..24361fec2a 100644 --- a/test/built-ins/ShadowRealm/prototype/evaluate/not-constructor.js +++ b/test/built-ins/ShadowRealm/prototype/evaluate/not-constructor.js @@ -22,7 +22,7 @@ assert.sameValue( assert.throws(TypeError, () => { new ShadowRealm.prototype.evaluate(""); -}, '`new ShadowRealm.prototype.evaluate("")` throws TypeError'); +}); const r = new ShadowRealm(); r.evaluate('globalThis.x = 0'); diff --git a/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js index 91ff6371cd..5babba95f1 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let sab = new SharedArrayBuffer(1); new sab.slice(); -}, '`let sab = new SharedArrayBuffer(1); new sab.slice()` throws TypeError'); +}); diff --git a/test/built-ins/String/fromCharCode/not-a-constructor.js b/test/built-ins/String/fromCharCode/not-a-constructor.js index 1d83e36583..68ed625313 100644 --- a/test/built-ins/String/fromCharCode/not-a-constructor.js +++ b/test/built-ins/String/fromCharCode/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(String.fromCharCode), false, 'isConstructor(Strin assert.throws(TypeError, () => { new String.fromCharCode(); -}, '`new String.fromCharCode()` throws TypeError'); +}); diff --git a/test/built-ins/String/fromCodePoint/not-a-constructor.js b/test/built-ins/String/fromCodePoint/not-a-constructor.js index 15e5425b9f..d17d734f63 100644 --- a/test/built-ins/String/fromCodePoint/not-a-constructor.js +++ b/test/built-ins/String/fromCodePoint/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(String.fromCodePoint), false, 'isConstructor(Stri assert.throws(TypeError, () => { new String.fromCodePoint(); -}, '`new String.fromCodePoint()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js b/test/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js index 0bcce071dc..07770bade2 100644 --- a/test/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js +++ b/test/built-ins/String/prototype/Symbol.iterator/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype[Symbol.iterator](); -}, '`new String.prototype[Symbol.iterator]()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js b/test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js index 387fded109..6d15cdb3f6 100644 --- a/test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js +++ b/test/built-ins/String/prototype/at/index-non-numeric-argument-tointeger-invalid.js @@ -17,4 +17,4 @@ let s = "01"; assert.throws(TypeError, () => { s.at(Symbol()); -}, '`s.at(Symbol())` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/at/return-abrupt-from-this.js b/test/built-ins/String/prototype/at/return-abrupt-from-this.js index 0908f06f05..7b960ddaa6 100644 --- a/test/built-ins/String/prototype/at/return-abrupt-from-this.js +++ b/test/built-ins/String/prototype/at/return-abrupt-from-this.js @@ -15,8 +15,8 @@ assert.sameValue(typeof String.prototype.at, 'function'); assert.throws(TypeError, () => { String.prototype.at.call(undefined); -}, '`String.prototype.at.call(undefined)` throws TypeError'); +}); assert.throws(TypeError, () => { String.prototype.at.call(null); -}, '`String.prototype.at.call(null)` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/charAt/not-a-constructor.js b/test/built-ins/String/prototype/charAt/not-a-constructor.js index 55136b1052..3cf9f8fef9 100644 --- a/test/built-ins/String/prototype/charAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/charAt/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.charAt(); -}, '`new String.prototype.charAt()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js b/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js index d0458dd12e..91222c3b13 100644 --- a/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.charCodeAt(); -}, '`new String.prototype.charCodeAt()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/codePointAt/not-a-constructor.js b/test/built-ins/String/prototype/codePointAt/not-a-constructor.js index f38dbb653f..037a37d677 100644 --- a/test/built-ins/String/prototype/codePointAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/codePointAt/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.codePointAt(); -}, '`new String.prototype.codePointAt()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/concat/not-a-constructor.js b/test/built-ins/String/prototype/concat/not-a-constructor.js index e6306ef9ff..8dccce7ec2 100644 --- a/test/built-ins/String/prototype/concat/not-a-constructor.js +++ b/test/built-ins/String/prototype/concat/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.concat(); -}, '`new String.prototype.concat()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/endsWith/not-a-constructor.js b/test/built-ins/String/prototype/endsWith/not-a-constructor.js index c4280c5c01..3b22bcd96d 100644 --- a/test/built-ins/String/prototype/endsWith/not-a-constructor.js +++ b/test/built-ins/String/prototype/endsWith/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.endsWith(); -}, '`new String.prototype.endsWith()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/includes/not-a-constructor.js b/test/built-ins/String/prototype/includes/not-a-constructor.js index c8c5a9692b..d28f4108dc 100644 --- a/test/built-ins/String/prototype/includes/not-a-constructor.js +++ b/test/built-ins/String/prototype/includes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.includes(1); -}, '`new String.prototype.includes(1)` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/indexOf/not-a-constructor.js b/test/built-ins/String/prototype/indexOf/not-a-constructor.js index 02c05b0638..fbef399c5d 100644 --- a/test/built-ins/String/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/indexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.indexOf(); -}, '`new String.prototype.indexOf()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/isWellFormed/not-a-constructor.js b/test/built-ins/String/prototype/isWellFormed/not-a-constructor.js index 26e25aa5fc..37e0d5e31c 100644 --- a/test/built-ins/String/prototype/isWellFormed/not-a-constructor.js +++ b/test/built-ins/String/prototype/isWellFormed/not-a-constructor.js @@ -29,4 +29,4 @@ assert.sameValue( assert.throws(TypeError, function () { new String.prototype.isWellFormed(); -}, '`new String.prototype.isWellFormed()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/isWellFormed/return-abrupt-from-this.js b/test/built-ins/String/prototype/isWellFormed/return-abrupt-from-this.js index 03ea080bdf..8c011a8d58 100644 --- a/test/built-ins/String/prototype/isWellFormed/return-abrupt-from-this.js +++ b/test/built-ins/String/prototype/isWellFormed/return-abrupt-from-this.js @@ -15,8 +15,8 @@ assert.sameValue(typeof String.prototype.isWellFormed, 'function'); assert.throws(TypeError, function () { String.prototype.isWellFormed.call(undefined); -}, '`String.prototype.isWellFormed.call(undefined)` throws TypeError'); +}); assert.throws(TypeError, function () { String.prototype.isWellFormed.call(null); -}, '`String.prototype.isWellFormed.call(null)` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js b/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js index 3613f4fb6e..86db860e8f 100644 --- a/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.lastIndexOf(); -}, '`new String.prototype.lastIndexOf()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/localeCompare/not-a-constructor.js b/test/built-ins/String/prototype/localeCompare/not-a-constructor.js index 4d87248ae0..42700c60b9 100644 --- a/test/built-ins/String/prototype/localeCompare/not-a-constructor.js +++ b/test/built-ins/String/prototype/localeCompare/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.localeCompare(); -}, '`new String.prototype.localeCompare()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/match/not-a-constructor.js b/test/built-ins/String/prototype/match/not-a-constructor.js index 3b79a08a5f..809d2fe237 100644 --- a/test/built-ins/String/prototype/match/not-a-constructor.js +++ b/test/built-ins/String/prototype/match/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.match(); -}, '`new String.prototype.match()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/matchAll/not-a-constructor.js b/test/built-ins/String/prototype/matchAll/not-a-constructor.js index aa6b43ed32..34039fe2ab 100644 --- a/test/built-ins/String/prototype/matchAll/not-a-constructor.js +++ b/test/built-ins/String/prototype/matchAll/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.matchAll(); -}, '`new String.prototype.matchAll()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/normalize/not-a-constructor.js b/test/built-ins/String/prototype/normalize/not-a-constructor.js index b854e49508..68d380b55c 100644 --- a/test/built-ins/String/prototype/normalize/not-a-constructor.js +++ b/test/built-ins/String/prototype/normalize/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.normalize(); -}, '`new String.prototype.normalize()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/padEnd/not-a-constructor.js b/test/built-ins/String/prototype/padEnd/not-a-constructor.js index ad3862c1e5..03bbf57f1e 100644 --- a/test/built-ins/String/prototype/padEnd/not-a-constructor.js +++ b/test/built-ins/String/prototype/padEnd/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.padEnd(); -}, '`new String.prototype.padEnd()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/padStart/not-a-constructor.js b/test/built-ins/String/prototype/padStart/not-a-constructor.js index d236a68826..9b583d3e79 100644 --- a/test/built-ins/String/prototype/padStart/not-a-constructor.js +++ b/test/built-ins/String/prototype/padStart/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.padStart(); -}, '`new String.prototype.padStart()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/repeat/not-a-constructor.js b/test/built-ins/String/prototype/repeat/not-a-constructor.js index d0a4b17a87..5e3556a431 100644 --- a/test/built-ins/String/prototype/repeat/not-a-constructor.js +++ b/test/built-ins/String/prototype/repeat/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.repeat(); -}, '`new String.prototype.repeat()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/replace/not-a-constructor.js b/test/built-ins/String/prototype/replace/not-a-constructor.js index dff9afadd9..9307071d1c 100644 --- a/test/built-ins/String/prototype/replace/not-a-constructor.js +++ b/test/built-ins/String/prototype/replace/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.replace(); -}, '`new String.prototype.replace()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/replaceAll/not-a-constructor.js b/test/built-ins/String/prototype/replaceAll/not-a-constructor.js index 0589233c05..cb82ef8a60 100644 --- a/test/built-ins/String/prototype/replaceAll/not-a-constructor.js +++ b/test/built-ins/String/prototype/replaceAll/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.replaceAll(); -}, '`new String.prototype.replaceAll()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/search/not-a-constructor.js b/test/built-ins/String/prototype/search/not-a-constructor.js index 8b2dc50c63..baa768accd 100644 --- a/test/built-ins/String/prototype/search/not-a-constructor.js +++ b/test/built-ins/String/prototype/search/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.search(); -}, '`new String.prototype.search()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/slice/not-a-constructor.js b/test/built-ins/String/prototype/slice/not-a-constructor.js index 334f2f3895..82a5066985 100644 --- a/test/built-ins/String/prototype/slice/not-a-constructor.js +++ b/test/built-ins/String/prototype/slice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.slice(); -}, '`new String.prototype.slice()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/split/not-a-constructor.js b/test/built-ins/String/prototype/split/not-a-constructor.js index 45abb4ad1e..a0d9c41a70 100644 --- a/test/built-ins/String/prototype/split/not-a-constructor.js +++ b/test/built-ins/String/prototype/split/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.split(); -}, '`new String.prototype.split()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/startsWith/not-a-constructor.js b/test/built-ins/String/prototype/startsWith/not-a-constructor.js index 588e3e232c..3a410a827f 100644 --- a/test/built-ins/String/prototype/startsWith/not-a-constructor.js +++ b/test/built-ins/String/prototype/startsWith/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.startsWith(); -}, '`new String.prototype.startsWith()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/substring/not-a-constructor.js b/test/built-ins/String/prototype/substring/not-a-constructor.js index 54d8baf605..14db74ede2 100644 --- a/test/built-ins/String/prototype/substring/not-a-constructor.js +++ b/test/built-ins/String/prototype/substring/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.substring(); -}, '`new String.prototype.substring()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js b/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js index a2573222c0..888b65e1bb 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toLocaleLowerCase(); -}, '`new String.prototype.toLocaleLowerCase()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js b/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js index 08faf17913..0961c648a3 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toLocaleUpperCase(); -}, '`new String.prototype.toLocaleUpperCase()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js b/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js index ecba2acf88..c67d57df2a 100644 --- a/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toLowerCase(); -}, '`new String.prototype.toLowerCase()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toString/not-a-constructor.js b/test/built-ins/String/prototype/toString/not-a-constructor.js index ddbb986b94..1cb4dd1545 100644 --- a/test/built-ins/String/prototype/toString/not-a-constructor.js +++ b/test/built-ins/String/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toString(); -}, '`new String.prototype.toString()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js b/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js index c19680c786..272d8048ca 100644 --- a/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toUpperCase(); -}, '`new String.prototype.toUpperCase()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toWellFormed/not-a-constructor.js b/test/built-ins/String/prototype/toWellFormed/not-a-constructor.js index 4e4a421012..7c4acb4a2c 100644 --- a/test/built-ins/String/prototype/toWellFormed/not-a-constructor.js +++ b/test/built-ins/String/prototype/toWellFormed/not-a-constructor.js @@ -29,4 +29,4 @@ assert.sameValue( assert.throws(TypeError, function () { new String.prototype.toWellFormed(); -}, '`new String.prototype.toWellFormed()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/toWellFormed/return-abrupt-from-this.js b/test/built-ins/String/prototype/toWellFormed/return-abrupt-from-this.js index 44fbb9c814..8c287b7ef1 100644 --- a/test/built-ins/String/prototype/toWellFormed/return-abrupt-from-this.js +++ b/test/built-ins/String/prototype/toWellFormed/return-abrupt-from-this.js @@ -15,8 +15,8 @@ assert.sameValue(typeof String.prototype.toWellFormed, 'function'); assert.throws(TypeError, function () { String.prototype.toWellFormed.call(undefined); -}, '`String.prototype.toWellFormed.call(undefined)` throws TypeError'); +}); assert.throws(TypeError, function () { String.prototype.toWellFormed.call(null); -}, '`String.prototype.toWellFormed.call(null)` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/trim/not-a-constructor.js b/test/built-ins/String/prototype/trim/not-a-constructor.js index 62932f797f..02a5c7f80f 100644 --- a/test/built-ins/String/prototype/trim/not-a-constructor.js +++ b/test/built-ins/String/prototype/trim/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.trim(); -}, '`new String.prototype.trim()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/trimEnd/not-a-constructor.js b/test/built-ins/String/prototype/trimEnd/not-a-constructor.js index 6ffaae933f..1f6818d8ea 100644 --- a/test/built-ins/String/prototype/trimEnd/not-a-constructor.js +++ b/test/built-ins/String/prototype/trimEnd/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.trimEnd(); -}, '`new String.prototype.trimEnd()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/trimStart/not-a-constructor.js b/test/built-ins/String/prototype/trimStart/not-a-constructor.js index b612215d0a..d7dc007748 100644 --- a/test/built-ins/String/prototype/trimStart/not-a-constructor.js +++ b/test/built-ins/String/prototype/trimStart/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.trimStart(); -}, '`new String.prototype.trimStart()` throws TypeError'); +}); diff --git a/test/built-ins/String/prototype/valueOf/not-a-constructor.js b/test/built-ins/String/prototype/valueOf/not-a-constructor.js index 5c6ded7734..65901927cb 100644 --- a/test/built-ins/String/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.valueOf(); -}, '`new String.prototype.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/String/raw/not-a-constructor.js b/test/built-ins/String/raw/not-a-constructor.js index 460ce2eb69..241d5a94b9 100644 --- a/test/built-ins/String/raw/not-a-constructor.js +++ b/test/built-ins/String/raw/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(String.raw), false, 'isConstructor(String.raw) mu assert.throws(TypeError, () => { new String.raw({raw: []}, []); -}, '`new String.raw({raw: []}, [])` throws TypeError'); +}); diff --git a/test/built-ins/Symbol/for/not-a-constructor.js b/test/built-ins/Symbol/for/not-a-constructor.js index d0779591ca..0dfc6ad7dc 100644 --- a/test/built-ins/Symbol/for/not-a-constructor.js +++ b/test/built-ins/Symbol/for/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Symbol.for), false, 'isConstructor(Symbol.for) mu assert.throws(TypeError, () => { new Symbol.for(); -}, '`new Symbol.for()` throws TypeError'); +}); diff --git a/test/built-ins/Symbol/keyFor/not-a-constructor.js b/test/built-ins/Symbol/keyFor/not-a-constructor.js index c1da1f79f4..2d7b0030a2 100644 --- a/test/built-ins/Symbol/keyFor/not-a-constructor.js +++ b/test/built-ins/Symbol/keyFor/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(Symbol.keyFor), false, 'isConstructor(Symbol.keyF assert.throws(TypeError, () => { new Symbol.keyFor(Symbol()); -}, '`new Symbol.keyFor(Symbol())` throws TypeError'); +}); diff --git a/test/built-ins/Symbol/prototype/toString/not-a-constructor.js b/test/built-ins/Symbol/prototype/toString/not-a-constructor.js index 8bb6e9fb8b..9c99aeef55 100644 --- a/test/built-ins/Symbol/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Symbol/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let symbol = Symbol(); new symbol.toString(); -}, '`let symbol = Symbol(); new symbol.toString()` throws TypeError'); +}); diff --git a/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js b/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js index cbb7e7ef18..3d23b8152a 100644 --- a/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let symbol = Symbol(); new symbol.valueOf(); -}, '`let symbol = Symbol(); new symbol.valueOf()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/from/not-a-constructor.js b/test/built-ins/TypedArray/from/not-a-constructor.js index 363fd9ce0e..bb11761689 100644 --- a/test/built-ins/TypedArray/from/not-a-constructor.js +++ b/test/built-ins/TypedArray/from/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(TypedArray.from), false, 'isConstructor(TypedArra assert.throws(TypeError, () => { new TypedArray.from([]); -}, '`new TypedArray.from([])` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/of/not-a-constructor.js b/test/built-ins/TypedArray/of/not-a-constructor.js index c17a599f12..e2a75373da 100644 --- a/test/built-ins/TypedArray/of/not-a-constructor.js +++ b/test/built-ins/TypedArray/of/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(TypedArray.of), false, 'isConstructor(TypedArray. assert.throws(TypeError, () => { new TypedArray.of(1, 2, 3, 4); -}, '`new TypedArray.of(1, 2, 3, 4)` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/Symbol.iterator/not-a-constructor.js b/test/built-ins/TypedArray/prototype/Symbol.iterator/not-a-constructor.js index a573a07e9b..dbe9f8d9e6 100644 --- a/test/built-ins/TypedArray/prototype/Symbol.iterator/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/Symbol.iterator/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8[Symbol.iterator](); -}, '`let u8 = new Uint8Array(1); new u8[Symbol.iterator]()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js b/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js index 703f912a99..d13441851f 100644 --- a/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js +++ b/test/built-ins/TypedArray/prototype/at/index-non-numeric-argument-tointeger-invalid.js @@ -24,5 +24,5 @@ testWithTypedArrayConstructors(TA => { assert.throws(TypeError, () => { a.at(Symbol()); - }, '`a.at(Symbol())` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js b/test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js index 4b224d05bb..7772a5a715 100644 --- a/test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js +++ b/test/built-ins/TypedArray/prototype/at/return-abrupt-from-this.js @@ -21,20 +21,20 @@ assert.sameValue( assert.throws(TypeError, () => { TypedArray.prototype.at.call(undefined); -}, '`TypedArray.prototype.at.call(undefined)` throws TypeError'); +}); assert.throws(TypeError, () => { TypedArray.prototype.at.call(null); -}, '`TypedArray.prototype.at.call(null)` throws TypeError'); +}); testWithTypedArrayConstructors(TA => { assert.sameValue(typeof TA.prototype.at, 'function', 'The value of `typeof TA.prototype.at` is "function"'); assert.throws(TypeError, () => { TA.prototype.at.call(undefined); - }, '`TA.prototype.at.call(undefined)` throws TypeError'); + }); assert.throws(TypeError, () => { TA.prototype.at.call(null); - }, '`TA.prototype.at.call(null)` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js b/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js index d07b461953..0e55bc66b2 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.copyWithin(); -}, '`let u8 = new Uint8Array(1); new u8.copyWithin()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js b/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js index 88374ce28d..6c38e14331 100644 --- a/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.entries(); -}, '`let u8 = new Uint8Array(1); new u8.entries()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/every/not-a-constructor.js b/test/built-ins/TypedArray/prototype/every/not-a-constructor.js index 1176931d96..c84e6ea434 100644 --- a/test/built-ins/TypedArray/prototype/every/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/every/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.every(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.every(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js b/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js index 1dfa2a6407..b901c21201 100644 --- a/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.fill(); -}, '`let u8 = new Uint8Array(1); new u8.fill()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js b/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js index 72914d77da..ca63e4db20 100644 --- a/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.filter(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.filter(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/find/not-a-constructor.js b/test/built-ins/TypedArray/prototype/find/not-a-constructor.js index db1f7a8e04..00dd2fa87c 100644 --- a/test/built-ins/TypedArray/prototype/find/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/find/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.find(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.find(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js b/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js index 583bcdf4f2..8b85b75f3e 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.findIndex(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.findIndex(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js b/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js index 14c29d6ecd..a5c97d2a00 100644 --- a/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.findLast(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.findLast(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js b/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js index ecad495f94..3256e23bcf 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.findLastIndex(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.findLastIndex(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js b/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js index 1e44a19bd8..39a7502f35 100644 --- a/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.forEach(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.forEach(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js b/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js index a60b5acbf7..5017b16e48 100644 --- a/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.includes(1); -}, '`let u8 = new Uint8Array(1); new u8.includes(1)` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js b/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js index 2f0643221b..bda7f8013d 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.indexOf(); -}, '`let u8 = new Uint8Array(1); new u8.indexOf()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/join/not-a-constructor.js b/test/built-ins/TypedArray/prototype/join/not-a-constructor.js index 9557b1b98f..5b88c3fbe2 100644 --- a/test/built-ins/TypedArray/prototype/join/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/join/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.join(); -}, '`let u8 = new Uint8Array(1); new u8.join()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js b/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js index 299f73e1ff..d579012f95 100644 --- a/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.keys(); -}, '`let u8 = new Uint8Array(1); new u8.keys()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js b/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js index 321a8e8a53..591a530724 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.lastIndexOf(); -}, '`let u8 = new Uint8Array(1); new u8.lastIndexOf()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/map/not-a-constructor.js b/test/built-ins/TypedArray/prototype/map/not-a-constructor.js index 80ac8f484a..1b0d4be0c6 100644 --- a/test/built-ins/TypedArray/prototype/map/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/map/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.map(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.map(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js b/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js index 1f6fc86399..3374e9fe2b 100644 --- a/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.reduce(() => {}, []); -}, '`let u8 = new Uint8Array(1); new u8.reduce(() => {}, [])` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js b/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js index 3096cfdac0..1a08634ec2 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.reduceRight(() => {}, []); -}, '`let u8 = new Uint8Array(1); new u8.reduceRight(() => {}, [])` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js b/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js index e08f86079a..26e287d154 100644 --- a/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.reverse(); -}, '`let u8 = new Uint8Array(1); new u8.reverse()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/set/not-a-constructor.js b/test/built-ins/TypedArray/prototype/set/not-a-constructor.js index 3c7e20d723..eb726ec03f 100644 --- a/test/built-ins/TypedArray/prototype/set/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/set/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.set([0], 0); -}, '`let u8 = new Uint8Array(1); new u8.set([0], 0)` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js b/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js index b0cd44da46..c6f06e1fed 100644 --- a/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.slice(); -}, '`let u8 = new Uint8Array(1); new u8.slice()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/some/not-a-constructor.js b/test/built-ins/TypedArray/prototype/some/not-a-constructor.js index 37476e640f..f231d4a5bf 100644 --- a/test/built-ins/TypedArray/prototype/some/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/some/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.some(() => {}); -}, '`let u8 = new Uint8Array(1); new u8.some(() => {})` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js b/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js index 8b0c964659..197032b122 100644 --- a/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.sort(); -}, '`let u8 = new Uint8Array(1); new u8.sort()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js b/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js index 5dd8b47694..f60afef333 100644 --- a/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.subarray(); -}, '`let u8 = new Uint8Array(1); new u8.subarray()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js b/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js index d3c0162f44..9335d175a5 100644 --- a/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.toLocaleString(); -}, '`let u8 = new Uint8Array(1); new u8.toLocaleString()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/toReversed/not-a-constructor.js b/test/built-ins/TypedArray/prototype/toReversed/not-a-constructor.js index 630eba76ed..0464e08d76 100644 --- a/test/built-ins/TypedArray/prototype/toReversed/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toReversed/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new TypedArray.prototype.toReversed(); -}, '`new TypedArray.prototype.toReversed()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/toSorted/not-a-constructor.js b/test/built-ins/TypedArray/prototype/toSorted/not-a-constructor.js index 6d47d98c71..f655e0eeb1 100644 --- a/test/built-ins/TypedArray/prototype/toSorted/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toSorted/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { new TypedArray.prototype.toSorted(); -}, '`new TypedArray.prototype.toSorted()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js b/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js index a9beadaf10..a3ff41d014 100644 --- a/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.toString(); -}, '`let u8 = new Uint8Array(1); new u8.toString()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArray/prototype/values/not-a-constructor.js b/test/built-ins/TypedArray/prototype/values/not-a-constructor.js index 1df6d643fe..c3f7d64d5b 100644 --- a/test/built-ins/TypedArray/prototype/values/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/values/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let u8 = new Uint8Array(1); new u8.values(); -}, '`let u8 = new Uint8Array(1); new u8.values()` throws TypeError'); +}); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict.js index 2bb6959e37..140206bf7c 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/indexed-value-ab-strict.js @@ -39,14 +39,14 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample["1"]; - }, '`delete sample["1"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict.js index 5f211e2ce4..0732874a0a 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-canonical-index-strict.js @@ -59,7 +59,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample[key]; - }, '`delete sample[key]` throws TypeError'); + }); delete TypedArray.prototype[key]; }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict.js index 016e8c5cde..632f565e76 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-minus-zero-strict.js @@ -42,5 +42,5 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.sameValue(delete sample["-0"], true, 'The value of `delete sample["-0"]` is true'); assert.throws(TypeError, () => { delete sample[-0]; - }, '`delete sample[-0]` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js index f4ff496231..b627c94ca9 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-get-throws.js @@ -34,5 +34,5 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(Test262Error, () => { sample.foo; - }, '`sample.foo` throws Test262Error'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict.js index 5120af8d67..8405f1af55 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-not-numeric-index-strict.js @@ -41,7 +41,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample.bar; - }, '`delete sample.bar` throws TypeError'); + }); assert.sameValue(delete sample.baz, true, 'The value of `delete sample.baz` is true'); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict.js index 7bd1a0767a..bff67c0e04 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/BigInt/key-is-out-of-bounds-strict.js @@ -43,11 +43,11 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.sameValue(delete sample["1"], true, 'The value of `delete sample["1"]` is true'); assert.sameValue(delete sample[1], true, 'The value of `delete sample[1]` is true'); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/indexed-value-ab-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/indexed-value-ab-strict.js index c02aa494db..6947cbc890 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/indexed-value-ab-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/indexed-value-ab-strict.js @@ -39,14 +39,14 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample["1"]; - }, '`delete sample["1"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-canonical-index-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-canonical-index-strict.js index bf3ce01d20..16ab439781 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-canonical-index-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-canonical-index-strict.js @@ -59,7 +59,7 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample[key]; - }, '`delete sample[key]` throws TypeError'); + }); delete TypedArray.prototype[key]; }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-minus-zero-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-minus-zero-strict.js index 0318011cf8..c13080dc10 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-minus-zero-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-minus-zero-strict.js @@ -42,5 +42,5 @@ testWithTypedArrayConstructors(function(TA) { assert.sameValue(delete sample["-0"], true, 'The value of `delete sample["-0"]` is true'); assert.throws(TypeError, () => { delete sample[-0]; - }, '`delete sample[-0]` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-get-throws.js b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-get-throws.js index c0a2f3afab..1b9badead4 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-get-throws.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-get-throws.js @@ -34,5 +34,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, () => { sample.foo; - }, '`sample.foo` throws Test262Error'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-strict.js index 23d3e198db..20096f0aed 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-not-numeric-index-strict.js @@ -41,7 +41,7 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample.bar; - }, '`delete sample.bar` throws TypeError'); + }); assert.sameValue(delete sample.baz, true, 'The value of `delete sample.baz` is true'); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-out-of-bounds-strict.js b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-out-of-bounds-strict.js index 2599956ea9..072098a0d4 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-out-of-bounds-strict.js +++ b/test/built-ins/TypedArrayConstructors/internals/Delete/key-is-out-of-bounds-strict.js @@ -43,11 +43,11 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, () => { delete sample["0"]; - }, '`delete sample["0"]` throws TypeError'); + }); assert.throws(TypeError, () => { delete sample[0]; - }, '`delete sample[0]` throws TypeError'); + }); assert.sameValue(delete sample["1"], true, 'The value of `delete sample["1"]` is true'); assert.sameValue(delete sample[1], true, 'The value of `delete sample[1]` is true'); diff --git a/test/built-ins/TypedArrayConstructors/internals/HasProperty/BigInt/abrupt-from-ordinary-has-parent-hasproperty.js b/test/built-ins/TypedArrayConstructors/internals/HasProperty/BigInt/abrupt-from-ordinary-has-parent-hasproperty.js index 10985c5a87..569c50d16b 100644 --- a/test/built-ins/TypedArrayConstructors/internals/HasProperty/BigInt/abrupt-from-ordinary-has-parent-hasproperty.js +++ b/test/built-ins/TypedArrayConstructors/internals/HasProperty/BigInt/abrupt-from-ordinary-has-parent-hasproperty.js @@ -51,7 +51,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { Reflect.has(sample, "foo"); - }, '`Reflect.has(sample, "foo")` throws Test262Error'); + }); Object.defineProperty(sample, "foo", { value: 42 }); diff --git a/test/built-ins/TypedArrayConstructors/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js b/test/built-ins/TypedArrayConstructors/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js index 76460854c0..8e49cca9ae 100644 --- a/test/built-ins/TypedArrayConstructors/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js +++ b/test/built-ins/TypedArrayConstructors/internals/HasProperty/abrupt-from-ordinary-has-parent-hasproperty.js @@ -51,7 +51,7 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { Reflect.has(sample, "foo"); - }, '`Reflect.has(sample, "foo")` throws Test262Error'); + }); Object.defineProperty(sample, "foo", { value: 42 }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-not-numeric-index-set-throws.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-not-numeric-index-set-throws.js index 8d9b4632b6..2fc95708b2 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-not-numeric-index-set-throws.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/key-is-not-numeric-index-set-throws.js @@ -34,7 +34,7 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample.test262 = 1; - }, '`sample.test262 = 1` throws Test262Error'); + }); assert.sameValue(sample.test262, undefined, 'The value of sample.test262 is expected to equal `undefined`'); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/null-tobigint.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/null-tobigint.js index 679c50c690..31e0045a4b 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/null-tobigint.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/null-tobigint.js @@ -56,6 +56,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { typedArray[0] = null; - }, '`typedArray[0] = null` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/number-tobigint.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/number-tobigint.js index 692b17d20b..5adb9a6d19 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/number-tobigint.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/number-tobigint.js @@ -56,30 +56,30 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { typedArray[0] = 1; - }, '`typedArray[0] = 1` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = Math.pow(2, 63); - }, '`typedArray[0] = Math.pow(2, 63)` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = +0; - }, '`typedArray[0] = +0` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = -0; - }, '`typedArray[0] = -0` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = Infinity; - }, '`typedArray[0] = Infinity` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = -Infinity; - }, '`typedArray[0] = -Infinity` throws TypeError'); + }); assert.throws(TypeError, function() { typedArray[0] = NaN; - }, '`typedArray[0] = NaN` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/string-nan-tobigint.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/string-nan-tobigint.js index 1a73eecc67..cafa32df25 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/string-nan-tobigint.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/string-nan-tobigint.js @@ -60,6 +60,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(SyntaxError, function() { typedArray[0] = "definately not a number"; - }, '`typedArray[0] = "definately not a number"` throws SyntaxError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/symbol-tobigint.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/symbol-tobigint.js index fc39ac9d60..a2e5cdc55c 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/symbol-tobigint.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/symbol-tobigint.js @@ -58,6 +58,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { typedArray[0] = s; - }, '`typedArray[0] = s` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/undefined-tobigint.js b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/undefined-tobigint.js index ddfe1b1d37..2232e5d3ab 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/undefined-tobigint.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/BigInt/undefined-tobigint.js @@ -57,6 +57,6 @@ testWithBigIntTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { typedArray[0] = undefined; - }, '`typedArray[0] = undefined` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/bigint-tonumber.js b/test/built-ins/TypedArrayConstructors/internals/Set/bigint-tonumber.js index 259c5f9f31..fd172e2786 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/bigint-tonumber.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/bigint-tonumber.js @@ -55,5 +55,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(TypeError, function() { typedArray[0] = 1n; - }, '`typedArray[0] = 1n` throws TypeError'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js b/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js index 6c2ce33e12..0029fd07c8 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/detached-buffer.js @@ -51,5 +51,5 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample['0'] = obj; - }, '`sample[\'0\'] = obj` throws Test262Error'); + }); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/key-is-not-numeric-index-set-throws.js b/test/built-ins/TypedArrayConstructors/internals/Set/key-is-not-numeric-index-set-throws.js index a15b92f072..c1bd92e8f3 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/key-is-not-numeric-index-set-throws.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/key-is-not-numeric-index-set-throws.js @@ -34,7 +34,7 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample.test262 = 1; - }, '`sample.test262 = 1` throws Test262Error'); + }); assert.sameValue(sample.test262, undefined, 'The value of sample.test262 is expected to equal `undefined`'); }); diff --git a/test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-throws.js b/test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-throws.js index f31ba31570..2c91acaa26 100644 --- a/test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-throws.js +++ b/test/built-ins/TypedArrayConstructors/internals/Set/tonumber-value-throws.js @@ -37,25 +37,25 @@ testWithTypedArrayConstructors(function(TA) { assert.throws(Test262Error, function() { sample["0"] = obj; - }, '`sample["0"] = obj` throws Test262Error'); + }); assert.throws(Test262Error, function() { sample["1.1"] = obj; - }, '`sample["1.1"] = obj` throws Test262Error'); + }); assert.throws(Test262Error, function() { sample["-0"] = obj; - }, '`sample["-0"] = obj` throws Test262Error'); + }); assert.throws(Test262Error, function() { sample["-1"] = obj; - }, '`sample["-1"] = obj` throws Test262Error'); + }); assert.throws(Test262Error, function() { sample["1"] = obj; - }, '`sample["1"] = obj` throws Test262Error'); + }); assert.throws(Test262Error, function() { sample["2"] = obj; - }, '`sample["2"] = obj` throws Test262Error'); + }); }); diff --git a/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js b/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js index f51ad3f1be..af4b4218f1 100644 --- a/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.delete(); -}, '`let wm = new WeakMap(); new wm.delete()` throws TypeError'); +}); diff --git a/test/built-ins/WeakMap/prototype/get/not-a-constructor.js b/test/built-ins/WeakMap/prototype/get/not-a-constructor.js index d27cc280a2..f85a893dc2 100644 --- a/test/built-ins/WeakMap/prototype/get/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/get/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.get(); -}, '`let wm = new WeakMap(); new wm.get()` throws TypeError'); +}); diff --git a/test/built-ins/WeakMap/prototype/has/not-a-constructor.js b/test/built-ins/WeakMap/prototype/has/not-a-constructor.js index d8a1da2b0c..4651f12c95 100644 --- a/test/built-ins/WeakMap/prototype/has/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/has/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.has(); -}, '`let wm = new WeakMap(); new wm.has()` throws TypeError'); +}); diff --git a/test/built-ins/WeakMap/prototype/set/not-a-constructor.js b/test/built-ins/WeakMap/prototype/set/not-a-constructor.js index db26f10bb8..d23bf0e050 100644 --- a/test/built-ins/WeakMap/prototype/set/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/set/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let wm = new WeakMap(); new wm.set({}, 1); -}, '`let wm = new WeakMap(); new wm.set({}, 1)` throws TypeError'); +}); diff --git a/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js b/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js index a319779a33..6d6741aa66 100644 --- a/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js +++ b/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let wr = new WeakRef({}); new wr.deref(); -}, '`let wr = new WeakRef({}); new wr.deref()` throws TypeError'); +}); diff --git a/test/built-ins/WeakSet/prototype/add/not-a-constructor.js b/test/built-ins/WeakSet/prototype/add/not-a-constructor.js index caa39ce8f1..69ef76697c 100644 --- a/test/built-ins/WeakSet/prototype/add/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/add/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.add({}); -}, '`let ws = new WeakSet(); new ws.add({})` throws TypeError'); +}); diff --git a/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js b/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js index b0d14ef076..84b7c8fcfb 100644 --- a/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.delete(); -}, '`let ws = new WeakSet(); new ws.delete()` throws TypeError'); +}); diff --git a/test/built-ins/WeakSet/prototype/has/not-a-constructor.js b/test/built-ins/WeakSet/prototype/has/not-a-constructor.js index 67c1401bc0..715cd58a4c 100644 --- a/test/built-ins/WeakSet/prototype/has/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/has/not-a-constructor.js @@ -29,5 +29,5 @@ assert.sameValue( assert.throws(TypeError, () => { let ws = new WeakSet(); new ws.has(); -}, '`let ws = new WeakSet(); new ws.has()` throws TypeError'); +}); diff --git a/test/built-ins/decodeURI/not-a-constructor.js b/test/built-ins/decodeURI/not-a-constructor.js index 43af3ce8ba..244149213f 100644 --- a/test/built-ins/decodeURI/not-a-constructor.js +++ b/test/built-ins/decodeURI/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(decodeURI), false, 'isConstructor(decodeURI) must assert.throws(TypeError, () => { new decodeURI(''); -}, '`new decodeURI(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/decodeURIComponent/not-a-constructor.js b/test/built-ins/decodeURIComponent/not-a-constructor.js index 2b36ae8fd0..098ccf5732 100644 --- a/test/built-ins/decodeURIComponent/not-a-constructor.js +++ b/test/built-ins/decodeURIComponent/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(decodeURIComponent), false, 'isConstructor(decode assert.throws(TypeError, () => { new decodeURIComponent(''); -}, '`new decodeURIComponent(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/encodeURI/not-a-constructor.js b/test/built-ins/encodeURI/not-a-constructor.js index 1976bcd417..000de04843 100644 --- a/test/built-ins/encodeURI/not-a-constructor.js +++ b/test/built-ins/encodeURI/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(encodeURI), false, 'isConstructor(encodeURI) must assert.throws(TypeError, () => { new encodeURI(''); -}, '`new encodeURI(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/encodeURIComponent/not-a-constructor.js b/test/built-ins/encodeURIComponent/not-a-constructor.js index b14665629a..39b6b9c9aa 100644 --- a/test/built-ins/encodeURIComponent/not-a-constructor.js +++ b/test/built-ins/encodeURIComponent/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(encodeURIComponent), false, 'isConstructor(encode assert.throws(TypeError, () => { new encodeURIComponent(''); -}, '`new encodeURIComponent(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/eval/not-a-constructor.js b/test/built-ins/eval/not-a-constructor.js index 4dbc4523d9..7574370d78 100644 --- a/test/built-ins/eval/not-a-constructor.js +++ b/test/built-ins/eval/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(eval), false, 'isConstructor(eval) must return fa assert.throws(TypeError, () => { new eval(''); -}, '`new eval(\'\')` throws TypeError'); +}); diff --git a/test/built-ins/isFinite/not-a-constructor.js b/test/built-ins/isFinite/not-a-constructor.js index 55038c7f58..5e1cb8e0c2 100644 --- a/test/built-ins/isFinite/not-a-constructor.js +++ b/test/built-ins/isFinite/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(isFinite), false, 'isConstructor(isFinite) must r assert.throws(TypeError, () => { new isFinite(1); -}, '`new isFinite(1)` throws TypeError'); +}); diff --git a/test/built-ins/isNaN/not-a-constructor.js b/test/built-ins/isNaN/not-a-constructor.js index 72164de19e..439301c90c 100644 --- a/test/built-ins/isNaN/not-a-constructor.js +++ b/test/built-ins/isNaN/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(isNaN), false, 'isConstructor(isNaN) must return assert.throws(TypeError, () => { new isNaN(1); -}, '`new isNaN(1)` throws TypeError'); +}); diff --git a/test/built-ins/parseFloat/not-a-constructor.js b/test/built-ins/parseFloat/not-a-constructor.js index fc9ab8a738..9a21105b23 100644 --- a/test/built-ins/parseFloat/not-a-constructor.js +++ b/test/built-ins/parseFloat/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(parseFloat), false, 'isConstructor(parseFloat) mu assert.throws(TypeError, () => { new parseFloat(1); -}, '`new parseFloat(1)` throws TypeError'); +}); diff --git a/test/built-ins/parseInt/not-a-constructor.js b/test/built-ins/parseInt/not-a-constructor.js index 2d004cad54..d0983da2b3 100644 --- a/test/built-ins/parseInt/not-a-constructor.js +++ b/test/built-ins/parseInt/not-a-constructor.js @@ -25,5 +25,5 @@ assert.sameValue(isConstructor(parseInt), false, 'isConstructor(parseInt) must r assert.throws(TypeError, () => { new parseInt(1); -}, '`new parseInt(1)` throws TypeError'); +}); diff --git a/test/intl402/Locale/constructor-options-collation-invalid.js b/test/intl402/Locale/constructor-options-collation-invalid.js index c4e6868605..2d8f842d38 100644 --- a/test/intl402/Locale/constructor-options-collation-invalid.js +++ b/test/intl402/Locale/constructor-options-collation-invalid.js @@ -30,5 +30,5 @@ const invalidCollationOptions = [ for (const invalidCollationOption of invalidCollationOptions) { assert.throws(RangeError, function() { new Intl.Locale("en", {collation: invalidCollationOption}); - }, '`new Intl.Locale("en", {collation: invalidCollationOption})` throws RangeError'); + }); }