From d576baf73fc36a31f5436b5a42e37a81c7e6e7d5 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Mon, 5 Oct 2020 14:36:06 -0400 Subject: [PATCH] Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests. --- .../Date/prototype/getYear/not-a-constructor.js | 9 +++++++-- .../Date/prototype/setYear/not-a-constructor.js | 9 +++++++-- .../Date/prototype/toGMTString/not-a-constructor.js | 9 +++++++-- .../String/prototype/anchor/not-a-constructor.js | 9 +++++++-- .../String/prototype/big/not-a-constructor.js | 9 +++++++-- .../String/prototype/blink/not-a-constructor.js | 9 +++++++-- .../String/prototype/bold/not-a-constructor.js | 9 +++++++-- .../String/prototype/fixed/not-a-constructor.js | 9 +++++++-- .../String/prototype/fontcolor/not-a-constructor.js | 9 +++++++-- .../String/prototype/fontsize/not-a-constructor.js | 9 +++++++-- .../String/prototype/italics/not-a-constructor.js | 9 +++++++-- .../String/prototype/link/not-a-constructor.js | 9 +++++++-- .../String/prototype/small/not-a-constructor.js | 9 +++++++-- .../String/prototype/strike/not-a-constructor.js | 9 +++++++-- .../String/prototype/sub/not-a-constructor.js | 9 +++++++-- .../String/prototype/substr/not-a-constructor.js | 9 +++++++-- .../String/prototype/sup/not-a-constructor.js | 9 +++++++-- test/annexB/built-ins/escape/not-a-constructor.js | 9 +++++++-- test/annexB/built-ins/unescape/not-a-constructor.js | 9 +++++++-- test/built-ins/Array/from/not-a-constructor.js | 10 ++++++++-- test/built-ins/Array/isArray/not-a-constructor.js | 10 ++++++++-- test/built-ins/Array/of/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.iterator/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/concat/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/copyWithin/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/entries/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/every/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/fill/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/filter/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/find/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/findIndex/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/flat/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/flatMap/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/forEach/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/includes/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/indexOf/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/join/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/keys/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/lastIndexOf/not-a-constructor.js | 10 ++++++++-- .../built-ins/Array/prototype/map/not-a-constructor.js | 10 ++++++++-- .../built-ins/Array/prototype/pop/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/push/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/reduce/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/reduceRight/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/reverse/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/shift/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/slice/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/some/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/sort/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/splice/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleString/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/unshift/not-a-constructor.js | 10 ++++++++-- .../Array/prototype/values/not-a-constructor.js | 10 ++++++++-- test/built-ins/ArrayBuffer/isView/not-a-constructor.js | 10 ++++++++-- .../ArrayBuffer/prototype/slice/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/add/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/and/not-a-constructor.js | 10 ++++++++-- .../Atomics/compareExchange/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/exchange/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/isLockFree/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/load/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/notify/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/or/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/store/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/sub/not-a-constructor.js | 10 ++++++++-- test/built-ins/Atomics/xor/not-a-constructor.js | 10 ++++++++-- test/built-ins/BigInt/asIntN/not-a-constructor.js | 8 +++++++- test/built-ins/BigInt/asUintN/not-a-constructor.js | 8 +++++++- .../prototype/toLocaleString/not-a-constructor.js | 8 +++++++- .../BigInt/prototype/toString/not-a-constructor.js | 8 +++++++- .../BigInt/prototype/valueOf/not-a-constructor.js | 8 +++++++- .../Boolean/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Boolean/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- .../prototype/getBigInt64/not-a-constructor.js | 10 ++++++++-- .../prototype/getBigUint64/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getFloat32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getFloat64/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getInt16/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getInt32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getInt8/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getUint16/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getUint32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/getUint8/not-a-constructor.js | 10 ++++++++-- .../prototype/setBigInt64/not-a-constructor.js | 10 ++++++++-- .../prototype/setBigUint64/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setFloat32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setFloat64/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setInt16/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setInt32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setInt8/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setUint16/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setUint32/not-a-constructor.js | 10 ++++++++-- .../DataView/prototype/setUint8/not-a-constructor.js | 10 ++++++++-- test/built-ins/Date/UTC/not-a-constructor.js | 10 ++++++++-- test/built-ins/Date/now/not-a-constructor.js | 10 ++++++++-- test/built-ins/Date/parse/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getDate/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getDay/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getFullYear/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getHours/not-a-constructor.js | 10 ++++++++-- .../prototype/getMilliseconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getMinutes/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getMonth/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getSeconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getTime/not-a-constructor.js | 10 ++++++++-- .../prototype/getTimezoneOffset/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCDate/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCDay/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCFullYear/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCHours/not-a-constructor.js | 10 ++++++++-- .../prototype/getUTCMilliseconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCMinutes/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCMonth/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/getUTCSeconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setDate/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setFullYear/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setHours/not-a-constructor.js | 10 ++++++++-- .../prototype/setMilliseconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setMinutes/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setMonth/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setSeconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setTime/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCDate/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCFullYear/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCHours/not-a-constructor.js | 10 ++++++++-- .../prototype/setUTCMilliseconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCMinutes/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCMonth/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/setUTCSeconds/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toDateString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toISOString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toJSON/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleDateString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toLocaleString/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleTimeString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toTimeString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/toUTCString/not-a-constructor.js | 10 ++++++++-- .../Date/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- .../Error/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../prototype/cleanupSome/not-a-constructor.js | 10 ++++++++-- .../prototype/register/not-a-constructor.js | 10 ++++++++-- .../prototype/unregister/not-a-constructor.js | 10 ++++++++-- .../Function/prototype/apply/not-a-constructor.js | 10 ++++++++-- .../Function/prototype/bind/not-a-constructor.js | 10 ++++++++-- .../Function/prototype/call/not-a-constructor.js | 10 ++++++++-- .../Function/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../GeneratorPrototype/next/not-a-constructor.js | 10 ++++++++-- .../GeneratorPrototype/return/not-a-constructor.js | 10 ++++++++-- .../GeneratorPrototype/throw/not-a-constructor.js | 10 ++++++++-- test/built-ins/JSON/parse/not-a-constructor.js | 10 ++++++++-- test/built-ins/JSON/stringify/not-a-constructor.js | 10 ++++++++-- .../Map/prototype/Symbol.iterator/not-a-constructor.js | 10 ++++++++-- .../built-ins/Map/prototype/clear/not-a-constructor.js | 10 ++++++++-- .../Map/prototype/delete/not-a-constructor.js | 10 ++++++++-- .../Map/prototype/entries/not-a-constructor.js | 10 ++++++++-- .../Map/prototype/forEach/not-a-constructor.js | 10 ++++++++-- test/built-ins/Map/prototype/get/not-a-constructor.js | 10 ++++++++-- test/built-ins/Map/prototype/has/not-a-constructor.js | 10 ++++++++-- test/built-ins/Map/prototype/keys/not-a-constructor.js | 10 ++++++++-- test/built-ins/Map/prototype/set/not-a-constructor.js | 10 ++++++++-- .../Map/prototype/values/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/abs/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/acos/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/acosh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/asin/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/asinh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/atan/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/atan2/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/atanh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/cbrt/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/ceil/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/clz32/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/cos/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/cosh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/exp/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/expm1/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/floor/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/fround/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/hypot/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/imul/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/log/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/log10/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/log1p/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/log2/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/max/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/min/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/pow/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/random/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/round/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/sign/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/sin/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/sinh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/sqrt/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/tan/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/tanh/not-a-constructor.js | 10 ++++++++-- test/built-ins/Math/trunc/not-a-constructor.js | 10 ++++++++-- test/built-ins/Number/isFinite/not-a-constructor.js | 10 ++++++++-- test/built-ins/Number/isInteger/not-a-constructor.js | 10 ++++++++-- test/built-ins/Number/isNaN/not-a-constructor.js | 10 ++++++++-- .../Number/isSafeInteger/not-a-constructor.js | 10 ++++++++-- test/built-ins/Number/parseFloat/not-a-constructor.js | 10 ++++++++-- test/built-ins/Number/parseInt/not-a-constructor.js | 10 ++++++++-- .../prototype/toExponential/not-a-constructor.js | 10 ++++++++-- .../Number/prototype/toFixed/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleString/not-a-constructor.js | 10 ++++++++-- .../Number/prototype/toPrecision/not-a-constructor.js | 10 ++++++++-- .../Number/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Number/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/assign/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/create/not-a-constructor.js | 10 ++++++++-- .../Object/defineProperties/not-a-constructor.js | 10 ++++++++-- .../Object/defineProperty/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/entries/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/freeze/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/fromEntries/not-a-constructor.js | 10 ++++++++-- .../getOwnPropertyDescriptor/not-a-constructor.js | 10 ++++++++-- .../getOwnPropertyDescriptors/not-a-constructor.js | 10 ++++++++-- .../Object/getOwnPropertyNames/not-a-constructor.js | 10 ++++++++-- .../Object/getOwnPropertySymbols/not-a-constructor.js | 10 ++++++++-- .../Object/getPrototypeOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/is/not-a-constructor.js | 10 ++++++++-- .../built-ins/Object/isExtensible/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/isFrozen/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/isSealed/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/keys/not-a-constructor.js | 10 ++++++++-- .../Object/preventExtensions/not-a-constructor.js | 10 ++++++++-- .../prototype/hasOwnProperty/not-a-constructor.js | 10 ++++++++-- .../prototype/isPrototypeOf/not-a-constructor.js | 10 ++++++++-- .../propertyIsEnumerable/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleString/not-a-constructor.js | 10 ++++++++-- .../Object/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Object/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/seal/not-a-constructor.js | 10 ++++++++-- .../Object/setPrototypeOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/Object/values/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/all/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/allSettled/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/any/not-a-constructor.js | 10 ++++++++-- .../Promise/prototype/catch/not-a-constructor.js | 10 ++++++++-- .../Promise/prototype/finally/not-a-constructor.js | 10 ++++++++-- .../Promise/prototype/then/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/race/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/reject/not-a-constructor.js | 10 ++++++++-- test/built-ins/Promise/resolve/not-a-constructor.js | 10 ++++++++-- test/built-ins/Proxy/revocable/not-a-constructor.js | 8 +++++++- test/built-ins/Reflect/apply/not-a-constructor.js | 10 ++++++++-- test/built-ins/Reflect/construct/not-a-constructor.js | 10 ++++++++-- .../Reflect/defineProperty/not-a-constructor.js | 10 ++++++++-- .../Reflect/deleteProperty/not-a-constructor.js | 10 ++++++++-- test/built-ins/Reflect/get/not-a-constructor.js | 10 ++++++++-- .../getOwnPropertyDescriptor/not-a-constructor.js | 10 ++++++++-- .../Reflect/getPrototypeOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/Reflect/has/not-a-constructor.js | 10 ++++++++-- .../Reflect/isExtensible/not-a-constructor.js | 10 ++++++++-- test/built-ins/Reflect/ownKeys/not-a-constructor.js | 10 ++++++++-- .../Reflect/preventExtensions/not-a-constructor.js | 10 ++++++++-- test/built-ins/Reflect/set/not-a-constructor.js | 10 ++++++++-- .../Reflect/setPrototypeOf/not-a-constructor.js | 10 ++++++++-- .../RegExp/prototype/Symbol.match/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.matchAll/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.replace/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.search/not-a-constructor.js | 10 ++++++++-- .../RegExp/prototype/Symbol.split/not-a-constructor.js | 10 ++++++++-- .../RegExp/prototype/exec/not-a-constructor.js | 10 ++++++++-- .../RegExp/prototype/test/not-a-constructor.js | 10 ++++++++-- .../RegExp/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Set/prototype/Symbol.iterator/not-a-constructor.js | 10 ++++++++-- test/built-ins/Set/prototype/add/not-a-constructor.js | 10 ++++++++-- .../built-ins/Set/prototype/clear/not-a-constructor.js | 10 ++++++++-- .../Set/prototype/delete/not-a-constructor.js | 10 ++++++++-- .../Set/prototype/entries/not-a-constructor.js | 10 ++++++++-- .../Set/prototype/forEach/not-a-constructor.js | 10 ++++++++-- test/built-ins/Set/prototype/has/not-a-constructor.js | 10 ++++++++-- .../Set/prototype/values/not-a-constructor.js | 10 ++++++++-- .../prototype/slice/not-a-constructor.js | 10 ++++++++-- .../built-ins/String/fromCharCode/not-a-constructor.js | 10 ++++++++-- .../String/fromCodePoint/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.iterator/not-a-constructor.js | 10 ++++++++-- .../String/prototype/charAt/not-a-constructor.js | 10 ++++++++-- .../String/prototype/charCodeAt/not-a-constructor.js | 10 ++++++++-- .../String/prototype/codePointAt/not-a-constructor.js | 10 ++++++++-- .../String/prototype/concat/not-a-constructor.js | 10 ++++++++-- .../String/prototype/endsWith/not-a-constructor.js | 10 ++++++++-- .../String/prototype/includes/not-a-constructor.js | 10 ++++++++-- .../String/prototype/indexOf/not-a-constructor.js | 10 ++++++++-- .../String/prototype/lastIndexOf/not-a-constructor.js | 10 ++++++++-- .../prototype/localeCompare/not-a-constructor.js | 10 ++++++++-- .../String/prototype/match/not-a-constructor.js | 10 ++++++++-- .../String/prototype/matchAll/not-a-constructor.js | 10 ++++++++-- .../String/prototype/normalize/not-a-constructor.js | 10 ++++++++-- .../String/prototype/padEnd/not-a-constructor.js | 10 ++++++++-- .../String/prototype/padStart/not-a-constructor.js | 10 ++++++++-- .../String/prototype/repeat/not-a-constructor.js | 10 ++++++++-- .../String/prototype/replace/not-a-constructor.js | 10 ++++++++-- .../String/prototype/replaceAll/not-a-constructor.js | 10 ++++++++-- .../String/prototype/search/not-a-constructor.js | 10 ++++++++-- .../String/prototype/slice/not-a-constructor.js | 10 ++++++++-- .../String/prototype/split/not-a-constructor.js | 10 ++++++++-- .../String/prototype/startsWith/not-a-constructor.js | 10 ++++++++-- .../String/prototype/substring/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleLowerCase/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleUpperCase/not-a-constructor.js | 10 ++++++++-- .../String/prototype/toLowerCase/not-a-constructor.js | 10 ++++++++-- .../String/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../String/prototype/toUpperCase/not-a-constructor.js | 10 ++++++++-- .../String/prototype/trim/not-a-constructor.js | 10 ++++++++-- .../String/prototype/trimEnd/not-a-constructor.js | 10 ++++++++-- .../String/prototype/trimStart/not-a-constructor.js | 10 ++++++++-- .../String/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/String/raw/not-a-constructor.js | 10 ++++++++-- test/built-ins/Symbol/for/not-a-constructor.js | 10 ++++++++-- test/built-ins/Symbol/keyFor/not-a-constructor.js | 10 ++++++++-- .../Symbol/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../Symbol/prototype/valueOf/not-a-constructor.js | 10 ++++++++-- test/built-ins/TypedArray/from/not-a-constructor.js | 10 ++++++++-- test/built-ins/TypedArray/of/not-a-constructor.js | 10 ++++++++-- .../prototype/Symbol.iterator/not-a-constructor.js | 10 ++++++++-- .../prototype/copyWithin/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/entries/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/every/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/fill/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/filter/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/find/not-a-constructor.js | 10 ++++++++-- .../prototype/findIndex/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/forEach/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/includes/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/indexOf/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/join/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/keys/not-a-constructor.js | 10 ++++++++-- .../prototype/lastIndexOf/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/map/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/reduce/not-a-constructor.js | 10 ++++++++-- .../prototype/reduceRight/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/reverse/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/set/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/slice/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/some/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/sort/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/subarray/not-a-constructor.js | 10 ++++++++-- .../prototype/toLocaleString/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/toString/not-a-constructor.js | 10 ++++++++-- .../TypedArray/prototype/values/not-a-constructor.js | 10 ++++++++-- .../WeakMap/prototype/delete/not-a-constructor.js | 10 ++++++++-- .../WeakMap/prototype/get/not-a-constructor.js | 10 ++++++++-- .../WeakMap/prototype/has/not-a-constructor.js | 10 ++++++++-- .../WeakMap/prototype/set/not-a-constructor.js | 10 ++++++++-- .../WeakRef/prototype/deref/not-a-constructor.js | 10 ++++++++-- .../WeakSet/prototype/add/not-a-constructor.js | 10 ++++++++-- .../WeakSet/prototype/delete/not-a-constructor.js | 10 ++++++++-- .../WeakSet/prototype/has/not-a-constructor.js | 10 ++++++++-- test/built-ins/decodeURI/not-a-constructor.js | 10 ++++++++-- test/built-ins/decodeURIComponent/not-a-constructor.js | 10 ++++++++-- test/built-ins/encodeURI/not-a-constructor.js | 10 ++++++++-- test/built-ins/encodeURIComponent/not-a-constructor.js | 10 ++++++++-- test/built-ins/eval/not-a-constructor.js | 10 ++++++++-- test/built-ins/isFinite/not-a-constructor.js | 10 ++++++++-- test/built-ins/isNaN/not-a-constructor.js | 10 ++++++++-- test/built-ins/parseFloat/not-a-constructor.js | 10 ++++++++-- test/built-ins/parseInt/not-a-constructor.js | 10 ++++++++-- 361 files changed, 2863 insertions(+), 716 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 48c11a17b8..ad186adb8a 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getYear does not implement [[Construct]] + Date.prototype.getYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 10747a3bcf..c851e7d3c7 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setYear does not implement [[Construct]] + Date.prototype.setYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 8dbfb4d235..47a08c8e91 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toGMTString does not implement [[Construct]] + Date.prototype.toGMTString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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/String/prototype/anchor/not-a-constructor.js b/test/annexB/built-ins/String/prototype/anchor/not-a-constructor.js index c2e6d50336..cdc1dd9ecf 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.anchor does not implement [[Construct]] + String.prototype.anchor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 4fadddfc58..9cfd4f22dd 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.big does not implement [[Construct]] + String.prototype.big does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +25,4 @@ 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 7ea9690c3c..63ab9eb57b 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.blink does not implement [[Construct]] + String.prototype.blink does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 eadee9bce6..416ea28d9d 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.bold does not implement [[Construct]] + String.prototype.bold does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 2480eedbb1..8d08d28a1d 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.fixed does not implement [[Construct]] + String.prototype.fixed does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 177125f9bd..2805576cf5 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.fontcolor does not implement [[Construct]] + String.prototype.fontcolor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 58a7930e91..08a7cc679d 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.fontsize does not implement [[Construct]] + String.prototype.fontsize does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 67728cc22c..226dfa44f7 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.italics does not implement [[Construct]] + String.prototype.italics does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 84db07b0a0..652420dd97 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.link does not implement [[Construct]] + String.prototype.link does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 1597070fc5..ef6ed245a5 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.small does not implement [[Construct]] + String.prototype.small does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 b34a1fa6fc..703f7a6370 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.strike does not implement [[Construct]] + String.prototype.strike does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 d1647a7605..9e61e06996 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.sub does not implement [[Construct]] + String.prototype.sub does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +25,4 @@ 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 82cf786060..55ecf40465 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.substr does not implement [[Construct]] + String.prototype.substr does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +29,4 @@ 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 5f6598f2bd..5a2faa965d 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 @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.sup does not implement [[Construct]] + String.prototype.sup does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +25,4 @@ 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 41c8d88db8..3389cc0191 100644 --- a/test/annexB/built-ins/escape/not-a-constructor.js +++ b/test/annexB/built-ins/escape/not-a-constructor.js @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - escape does not implement [[Construct]] + escape does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +25,4 @@ 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 9c6b92eba4..fb9070aaaa 100644 --- a/test/annexB/built-ins/unescape/not-a-constructor.js +++ b/test/annexB/built-ins/unescape/not-a-constructor.js @@ -4,13 +4,18 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - unescape does not implement [[Construct]] + unescape does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +25,4 @@ 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/from/not-a-constructor.js b/test/built-ins/Array/from/not-a-constructor.js index e7d7885d16..87f80f7004 100644 --- a/test/built-ins/Array/from/not-a-constructor.js +++ b/test/built-ins/Array/from/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.from does not implement [[Construct]] + Array.from does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.from), false, 'isConstructor(Array.from) mu assert.throws(TypeError, () => { new Array.from([]); }, '`new Array.from([])` throws TypeError'); - + diff --git a/test/built-ins/Array/isArray/not-a-constructor.js b/test/built-ins/Array/isArray/not-a-constructor.js index 7c03bf80df..4e073d3f7e 100644 --- a/test/built-ins/Array/isArray/not-a-constructor.js +++ b/test/built-ins/Array/isArray/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.isArray does not implement [[Construct]] + Array.isArray does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.isArray), false, 'isConstructor(Array.isArr assert.throws(TypeError, () => { new Array.isArray([]); }, '`new Array.isArray([])` throws TypeError'); - + diff --git a/test/built-ins/Array/of/not-a-constructor.js b/test/built-ins/Array/of/not-a-constructor.js index a9b910cceb..fd725bb541 100644 --- a/test/built-ins/Array/of/not-a-constructor.js +++ b/test/built-ins/Array/of/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.of does not implement [[Construct]] + Array.of does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.of), false, 'isConstructor(Array.of) must r assert.throws(TypeError, () => { new Array.of(1); }, '`new Array.of(1)` 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 fd5d038c04..50cce60821 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype[Symbol.iterator] does not implement [[Construct]] + Array.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.iterator, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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/concat/not-a-constructor.js b/test/built-ins/Array/prototype/concat/not-a-constructor.js index c89304c29d..aae4497430 100644 --- a/test/built-ins/Array/prototype/concat/not-a-constructor.js +++ b/test/built-ins/Array/prototype/concat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.concat does not implement [[Construct]] + Array.prototype.concat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.concat([]); }, '`new Array.prototype.concat([])` 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 caf8907205..d781d70db7 100644 --- a/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js +++ b/test/built-ins/Array/prototype/copyWithin/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.copyWithin does not implement [[Construct]] + Array.prototype.copyWithin does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 d4ab797a3f..abdc387e34 100644 --- a/test/built-ins/Array/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Array/prototype/entries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.entries does not implement [[Construct]] + Array.prototype.entries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 76a9149243..87d6ee5d07 100644 --- a/test/built-ins/Array/prototype/every/not-a-constructor.js +++ b/test/built-ins/Array/prototype/every/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.every does not implement [[Construct]] + Array.prototype.every does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 18529fa6b5..83b5c2ed7e 100644 --- a/test/built-ins/Array/prototype/fill/not-a-constructor.js +++ b/test/built-ins/Array/prototype/fill/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.fill does not implement [[Construct]] + Array.prototype.fill does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 2bd20be1f9..55e3b3b1ae 100644 --- a/test/built-ins/Array/prototype/filter/not-a-constructor.js +++ b/test/built-ins/Array/prototype/filter/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.filter does not implement [[Construct]] + Array.prototype.filter does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 f8b7a8b87d..13f3020a0a 100644 --- a/test/built-ins/Array/prototype/find/not-a-constructor.js +++ b/test/built-ins/Array/prototype/find/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.find does not implement [[Construct]] + Array.prototype.find does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5580d84842..a8b945dbee 100644 --- a/test/built-ins/Array/prototype/findIndex/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findIndex/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.findIndex does not implement [[Construct]] + Array.prototype.findIndex does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.findIndex(() => {}); }, '`new Array.prototype.findIndex(() => {})` 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 175dbbbc6b..4ac281a444 100644 --- a/test/built-ins/Array/prototype/flat/not-a-constructor.js +++ b/test/built-ins/Array/prototype/flat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.flat does not implement [[Construct]] + Array.prototype.flat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 df68c99001..9ad50a0e2a 100644 --- a/test/built-ins/Array/prototype/flatMap/not-a-constructor.js +++ b/test/built-ins/Array/prototype/flatMap/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.flatMap does not implement [[Construct]] + Array.prototype.flatMap does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Array.prototype.flatMap, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a59663c63b..9721d78bb7 100644 --- a/test/built-ins/Array/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Array/prototype/forEach/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.forEach does not implement [[Construct]] + Array.prototype.forEach does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 da056dc0cb..d5052d19fb 100644 --- a/test/built-ins/Array/prototype/includes/not-a-constructor.js +++ b/test/built-ins/Array/prototype/includes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.includes does not implement [[Construct]] + Array.prototype.includes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 bfbd77cf78..ce1a8d019d 100644 --- a/test/built-ins/Array/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/Array/prototype/indexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.indexOf does not implement [[Construct]] + Array.prototype.indexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 26196adf37..33b3a4d5c2 100644 --- a/test/built-ins/Array/prototype/join/not-a-constructor.js +++ b/test/built-ins/Array/prototype/join/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.join does not implement [[Construct]] + Array.prototype.join does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 f99bfd7a32..6b8544765f 100644 --- a/test/built-ins/Array/prototype/keys/not-a-constructor.js +++ b/test/built-ins/Array/prototype/keys/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.keys does not implement [[Construct]] + Array.prototype.keys does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 ed4de49a51..dc755f9eb0 100644 --- a/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/Array/prototype/lastIndexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.lastIndexOf does not implement [[Construct]] + Array.prototype.lastIndexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 ebb238a953..d521b09709 100644 --- a/test/built-ins/Array/prototype/map/not-a-constructor.js +++ b/test/built-ins/Array/prototype/map/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.map does not implement [[Construct]] + Array.prototype.map does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7645728768..dcaccf6280 100644 --- a/test/built-ins/Array/prototype/pop/not-a-constructor.js +++ b/test/built-ins/Array/prototype/pop/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.pop does not implement [[Construct]] + Array.prototype.pop does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 35fc7fe1f4..e79b243672 100644 --- a/test/built-ins/Array/prototype/push/not-a-constructor.js +++ b/test/built-ins/Array/prototype/push/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.push does not implement [[Construct]] + Array.prototype.push does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 ab3e31e034..1f425cf1f2 100644 --- a/test/built-ins/Array/prototype/reduce/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reduce/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.reduce does not implement [[Construct]] + Array.prototype.reduce does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e2c8b50c70..2d08d721a3 100644 --- a/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reduceRight/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.reduceRight does not implement [[Construct]] + Array.prototype.reduceRight does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 dea81129d2..7d48bc1588 100644 --- a/test/built-ins/Array/prototype/reverse/not-a-constructor.js +++ b/test/built-ins/Array/prototype/reverse/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.reverse does not implement [[Construct]] + Array.prototype.reverse does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 75d95e96ec..5157f52dcf 100644 --- a/test/built-ins/Array/prototype/shift/not-a-constructor.js +++ b/test/built-ins/Array/prototype/shift/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.shift does not implement [[Construct]] + Array.prototype.shift does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 815923c1a6..dbd79446df 100644 --- a/test/built-ins/Array/prototype/slice/not-a-constructor.js +++ b/test/built-ins/Array/prototype/slice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.slice does not implement [[Construct]] + Array.prototype.slice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 d383bd7761..a06b023624 100644 --- a/test/built-ins/Array/prototype/some/not-a-constructor.js +++ b/test/built-ins/Array/prototype/some/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.some does not implement [[Construct]] + Array.prototype.some does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 4a5d17a479..6d2ae6d896 100644 --- a/test/built-ins/Array/prototype/sort/not-a-constructor.js +++ b/test/built-ins/Array/prototype/sort/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.sort does not implement [[Construct]] + Array.prototype.sort does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 c8036193da..4a4ddad154 100644 --- a/test/built-ins/Array/prototype/splice/not-a-constructor.js +++ b/test/built-ins/Array/prototype/splice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.splice does not implement [[Construct]] + Array.prototype.splice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 aa9f41faa3..740ad5cfd5 100644 --- a/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toLocaleString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.toLocaleString does not implement [[Construct]] + Array.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.toLocaleString(); }, '`new Array.prototype.toLocaleString()` 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 1c69f18c98..bf6ba19ca9 100644 --- a/test/built-ins/Array/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Array/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.toString does not implement [[Construct]] + Array.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 10d8a571a6..a8b21f8104 100644 --- a/test/built-ins/Array/prototype/unshift/not-a-constructor.js +++ b/test/built-ins/Array/prototype/unshift/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.unshift does not implement [[Construct]] + Array.prototype.unshift does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 f4d4f218df..35bf45aa8c 100644 --- a/test/built-ins/Array/prototype/values/not-a-constructor.js +++ b/test/built-ins/Array/prototype/values/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Array.prototype.values does not implement [[Construct]] + Array.prototype.values does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Array.prototype.values, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Array.prototype.values(); }, '`new Array.prototype.values()` 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 ff1a276b44..9d65b9f0d9 100644 --- a/test/built-ins/ArrayBuffer/isView/not-a-constructor.js +++ b/test/built-ins/ArrayBuffer/isView/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - ArrayBuffer.isView does not implement [[Construct]] + ArrayBuffer.isView does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, ArrayBuffer, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 cfff6b314e..9ea8c41161 100644 --- a/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js +++ b/test/built-ins/ArrayBuffer/prototype/slice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - ArrayBuffer.prototype.slice does not implement [[Construct]] + ArrayBuffer.prototype.slice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, ArrayBuffer, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/add/not-a-constructor.js index b582a354ac..7e298c3dac 100644 --- a/test/built-ins/Atomics/add/not-a-constructor.js +++ b/test/built-ins/Atomics/add/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.add does not implement [[Construct]] + Atomics.add does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/and/not-a-constructor.js index f0d2722fc7..2d4a87482b 100644 --- a/test/built-ins/Atomics/and/not-a-constructor.js +++ b/test/built-ins/Atomics/and/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.and does not implement [[Construct]] + Atomics.and does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/compareExchange/not-a-constructor.js index 09437acffa..ca44ab3936 100644 --- a/test/built-ins/Atomics/compareExchange/not-a-constructor.js +++ b/test/built-ins/Atomics/compareExchange/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.compareExchange does not implement [[Construct]] + Atomics.compareExchange does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/exchange/not-a-constructor.js index 7e667e324f..bc8e7ec026 100644 --- a/test/built-ins/Atomics/exchange/not-a-constructor.js +++ b/test/built-ins/Atomics/exchange/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.exchange does not implement [[Construct]] + Atomics.exchange does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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 eddec8eb9d..41c832baf8 100644 --- a/test/built-ins/Atomics/isLockFree/not-a-constructor.js +++ b/test/built-ins/Atomics/isLockFree/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.isLockFree does not implement [[Construct]] + Atomics.isLockFree does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/load/not-a-constructor.js index 49ae3ef469..5f4b3235af 100644 --- a/test/built-ins/Atomics/load/not-a-constructor.js +++ b/test/built-ins/Atomics/load/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.load does not implement [[Construct]] + Atomics.load does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/notify/not-a-constructor.js index eb454b899f..2d7c1b33d4 100644 --- a/test/built-ins/Atomics/notify/not-a-constructor.js +++ b/test/built-ins/Atomics/notify/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.notify does not implement [[Construct]] + Atomics.notify does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/or/not-a-constructor.js b/test/built-ins/Atomics/or/not-a-constructor.js index 4b8bb0dffe..974625579f 100644 --- a/test/built-ins/Atomics/or/not-a-constructor.js +++ b/test/built-ins/Atomics/or/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.or does not implement [[Construct]] + Atomics.or does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/store/not-a-constructor.js b/test/built-ins/Atomics/store/not-a-constructor.js index 3c7eb8903c..5478d50503 100644 --- a/test/built-ins/Atomics/store/not-a-constructor.js +++ b/test/built-ins/Atomics/store/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.store does not implement [[Construct]] + Atomics.store does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/not-a-constructor.js b/test/built-ins/Atomics/sub/not-a-constructor.js index 4d4b230de7..95c1c23d24 100644 --- a/test/built-ins/Atomics/sub/not-a-constructor.js +++ b/test/built-ins/Atomics/sub/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.sub does not implement [[Construct]] + Atomics.sub does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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/xor/not-a-constructor.js b/test/built-ins/Atomics/xor/not-a-constructor.js index 94d855a042..6e04b69f01 100644 --- a/test/built-ins/Atomics/xor/not-a-constructor.js +++ b/test/built-ins/Atomics/xor/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Atomics.xor does not implement [[Construct]] + Atomics.xor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] ---*/ @@ -20,4 +26,4 @@ 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 9e512c7774..1cf1ae2d81 100644 --- a/test/built-ins/BigInt/asIntN/not-a-constructor.js +++ b/test/built-ins/BigInt/asIntN/not-a-constructor.js @@ -3,13 +3,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - BigInt.asIntN does not implement [[Construct]] + BigInt.asIntN does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, arrow-function] ---*/ diff --git a/test/built-ins/BigInt/asUintN/not-a-constructor.js b/test/built-ins/BigInt/asUintN/not-a-constructor.js index a7ee5ee24d..cbedea1ed0 100644 --- a/test/built-ins/BigInt/asUintN/not-a-constructor.js +++ b/test/built-ins/BigInt/asUintN/not-a-constructor.js @@ -3,13 +3,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - BigInt.asUintN does not implement [[Construct]] + BigInt.asUintN does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, arrow-function] ---*/ 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 b47561b239..e3caae3152 100644 --- a/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/toLocaleString/not-a-constructor.js @@ -3,13 +3,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - BigInt.prototype.toLocaleString does not implement [[Construct]] + BigInt.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, arrow-function] ---*/ 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 a69937a973..cd5763a8e7 100644 --- a/test/built-ins/BigInt/prototype/toString/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/toString/not-a-constructor.js @@ -3,13 +3,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - BigInt.prototype.toString does not implement [[Construct]] + BigInt.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, arrow-function] ---*/ 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 a0d60101c6..982214f99a 100644 --- a/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/BigInt/prototype/valueOf/not-a-constructor.js @@ -3,13 +3,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - BigInt.prototype.valueOf does not implement [[Construct]] + BigInt.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, arrow-function] ---*/ 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 2cee7e197f..f70ed4defa 100644 --- a/test/built-ins/Boolean/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Boolean/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Boolean.prototype.toString does not implement [[Construct]] + Boolean.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 bf8afa305a..578f9d9461 100644 --- a/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Boolean/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Boolean.prototype.valueOf does not implement [[Construct]] + Boolean.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e58d8fd865..758d8690f3 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getBigInt64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getBigInt64 does not implement [[Construct]] + DataView.prototype.getBigInt64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 60cf4f7d5e..8610660741 100644 --- a/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getBigUint64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getBigUint64 does not implement [[Construct]] + DataView.prototype.getBigUint64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 0967866711..6a269af05a 100644 --- a/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getFloat32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getFloat32 does not implement [[Construct]] + DataView.prototype.getFloat32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 452fadb946..54b1105a79 100644 --- a/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getFloat64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getFloat64 does not implement [[Construct]] + DataView.prototype.getFloat64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 f4c449811e..03f38347d3 100644 --- a/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt16/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getInt16 does not implement [[Construct]] + DataView.prototype.getInt16 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 0f2fe1e9c0..30aa97373b 100644 --- a/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getInt32 does not implement [[Construct]] + DataView.prototype.getInt32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 0566b5398f..a0d48f745e 100644 --- a/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getInt8/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getInt8 does not implement [[Construct]] + DataView.prototype.getInt8 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 a88685e64f..b0ad42c394 100644 --- a/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint16/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getUint16 does not implement [[Construct]] + DataView.prototype.getUint16 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 ec5949be64..98ca228cc2 100644 --- a/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getUint32 does not implement [[Construct]] + DataView.prototype.getUint32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 52f9673a30..b3165ff2ae 100644 --- a/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/getUint8/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.getUint8 does not implement [[Construct]] + DataView.prototype.getUint8 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 d1f1d70090..29ae5b573c 100644 --- a/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setBigInt64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setBigInt64 does not implement [[Construct]] + DataView.prototype.setBigInt64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 d1951096e1..b9354d7ea8 100644 --- a/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setBigUint64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setBigUint64 does not implement [[Construct]] + DataView.prototype.setBigUint64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 c1465a2fa3..ae8c2625d4 100644 --- a/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setFloat32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setFloat32 does not implement [[Construct]] + DataView.prototype.setFloat32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 4d6f0e3c91..f2429b5c25 100644 --- a/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setFloat64/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setFloat64 does not implement [[Construct]] + DataView.prototype.setFloat64 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 135f34cc90..08610bdf2a 100644 --- a/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt16/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setInt16 does not implement [[Construct]] + DataView.prototype.setInt16 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 628a76867c..bfda6b2403 100644 --- a/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setInt32 does not implement [[Construct]] + DataView.prototype.setInt32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 3287f50d77..02de3d7192 100644 --- a/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setInt8/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setInt8 does not implement [[Construct]] + DataView.prototype.setInt8 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 62f8cb0981..7c80e85b42 100644 --- a/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint16/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setUint16 does not implement [[Construct]] + DataView.prototype.setUint16 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 89d5998756..2a7d234d5d 100644 --- a/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setUint32 does not implement [[Construct]] + DataView.prototype.setUint32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 2eb4521315..8ea7610a66 100644 --- a/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js +++ b/test/built-ins/DataView/prototype/setUint8/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - DataView.prototype.setUint8 does not implement [[Construct]] + DataView.prototype.setUint8 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] ---*/ @@ -24,4 +30,4 @@ 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 64607b32dd..c59dbc6d07 100644 --- a/test/built-ins/Date/UTC/not-a-constructor.js +++ b/test/built-ins/Date/UTC/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.UTC does not implement [[Construct]] + Date.UTC does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5522787de0..c9b04f47a8 100644 --- a/test/built-ins/Date/now/not-a-constructor.js +++ b/test/built-ins/Date/now/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.now does not implement [[Construct]] + Date.now does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 e4a745b944..35354055c8 100644 --- a/test/built-ins/Date/parse/not-a-constructor.js +++ b/test/built-ins/Date/parse/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.parse does not implement [[Construct]] + Date.parse does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 708f3f1887..3043f07b61 100644 --- a/test/built-ins/Date/prototype/getDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getDate/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getDate does not implement [[Construct]] + Date.prototype.getDate does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0b53733b99..e365a32cb2 100644 --- a/test/built-ins/Date/prototype/getDay/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getDay/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getDay does not implement [[Construct]] + Date.prototype.getDay does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0e187cdfc4..187e6d11f0 100644 --- a/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getFullYear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getFullYear does not implement [[Construct]] + Date.prototype.getFullYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 64ef731bf0..be31482638 100644 --- a/test/built-ins/Date/prototype/getHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getHours/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getHours does not implement [[Construct]] + Date.prototype.getHours does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4de4763d30..4adbb5c184 100644 --- a/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMilliseconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getMilliseconds does not implement [[Construct]] + Date.prototype.getMilliseconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 7d8d83c010..695eebb793 100644 --- a/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMinutes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getMinutes does not implement [[Construct]] + Date.prototype.getMinutes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 f8fa89cc63..597d476abf 100644 --- a/test/built-ins/Date/prototype/getMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getMonth/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getMonth does not implement [[Construct]] + Date.prototype.getMonth does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 56e69dd215..953fc4f1df 100644 --- a/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getSeconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getSeconds does not implement [[Construct]] + Date.prototype.getSeconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4b766f0abb..034bd10167 100644 --- a/test/built-ins/Date/prototype/getTime/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getTime/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getTime does not implement [[Construct]] + Date.prototype.getTime does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 2af2324a25..ecf6bd6270 100644 --- a/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getTimezoneOffset/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getTimezoneOffset does not implement [[Construct]] + Date.prototype.getTimezoneOffset does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 612fab529f..1d1440d03a 100644 --- a/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCDate/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCDate does not implement [[Construct]] + Date.prototype.getUTCDate does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 913698db63..23cd115a71 100644 --- a/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCDay/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCDay does not implement [[Construct]] + Date.prototype.getUTCDay does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 23eb08efdd..26e0e05969 100644 --- a/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCFullYear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCFullYear does not implement [[Construct]] + Date.prototype.getUTCFullYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c75a084100..c5f65a3b28 100644 --- a/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCHours/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCHours does not implement [[Construct]] + Date.prototype.getUTCHours does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 3a26721db8..d12dfdafd2 100644 --- a/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMilliseconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCMilliseconds does not implement [[Construct]] + Date.prototype.getUTCMilliseconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 60f2adc1a5..3d0cbcad39 100644 --- a/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMinutes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCMinutes does not implement [[Construct]] + Date.prototype.getUTCMinutes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 231bd72e7b..dce22c74b9 100644 --- a/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCMonth/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCMonth does not implement [[Construct]] + Date.prototype.getUTCMonth does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 228c2d8ca0..683ef986fb 100644 --- a/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/getUTCSeconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.getUTCSeconds does not implement [[Construct]] + Date.prototype.getUTCSeconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 41867ef705..2db8b5e614 100644 --- a/test/built-ins/Date/prototype/setDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setDate/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setDate does not implement [[Construct]] + Date.prototype.setDate does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 7c31771f60..bdad193c19 100644 --- a/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setFullYear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setFullYear does not implement [[Construct]] + Date.prototype.setFullYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e8f1269105..69c5053c56 100644 --- a/test/built-ins/Date/prototype/setHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setHours/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setHours does not implement [[Construct]] + Date.prototype.setHours does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 f365428f97..4fbe9f3d7f 100644 --- a/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMilliseconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setMilliseconds does not implement [[Construct]] + Date.prototype.setMilliseconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 1dac219e49..ea8fdf6002 100644 --- a/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMinutes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setMinutes does not implement [[Construct]] + Date.prototype.setMinutes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 843fa2d624..f58140aa86 100644 --- a/test/built-ins/Date/prototype/setMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setMonth/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setMonth does not implement [[Construct]] + Date.prototype.setMonth does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 69e6d12223..0050fd8813 100644 --- a/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setSeconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setSeconds does not implement [[Construct]] + Date.prototype.setSeconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 9c881ea8d4..aa0bba48b5 100644 --- a/test/built-ins/Date/prototype/setTime/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setTime/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setTime does not implement [[Construct]] + Date.prototype.setTime does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 1bce4c055d..5e0aec9ace 100644 --- a/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCDate/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCDate does not implement [[Construct]] + Date.prototype.setUTCDate does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 84653851bb..d3c78d18ab 100644 --- a/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCFullYear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCFullYear does not implement [[Construct]] + Date.prototype.setUTCFullYear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b90cbd484d..002c6bfbdc 100644 --- a/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCHours/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCHours does not implement [[Construct]] + Date.prototype.setUTCHours does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b4dbc75c02..b5eca2fa8c 100644 --- a/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMilliseconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCMilliseconds does not implement [[Construct]] + Date.prototype.setUTCMilliseconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0647118890..0762ec300d 100644 --- a/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMinutes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCMinutes does not implement [[Construct]] + Date.prototype.setUTCMinutes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 d5a455ed2a..c643c46b12 100644 --- a/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCMonth/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCMonth does not implement [[Construct]] + Date.prototype.setUTCMonth does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 13a7507233..0d3e05accf 100644 --- a/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js +++ b/test/built-ins/Date/prototype/setUTCSeconds/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.setUTCSeconds does not implement [[Construct]] + Date.prototype.setUTCSeconds does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 6320f29698..77e948feb2 100644 --- a/test/built-ins/Date/prototype/toDateString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toDateString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toDateString does not implement [[Construct]] + Date.prototype.toDateString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 8df5305915..72fac85568 100644 --- a/test/built-ins/Date/prototype/toISOString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toISOString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toISOString does not implement [[Construct]] + Date.prototype.toISOString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b06b229456..e0cc28f9c8 100644 --- a/test/built-ins/Date/prototype/toJSON/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toJSON/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toJSON does not implement [[Construct]] + Date.prototype.toJSON does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 d4bf9a3e9e..dd8cbb452c 100644 --- a/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleDateString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toLocaleDateString does not implement [[Construct]] + Date.prototype.toLocaleDateString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 067b0e752c..e64a4c96dc 100644 --- a/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toLocaleString does not implement [[Construct]] + Date.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c2c7586fc9..8ea0430150 100644 --- a/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toLocaleTimeString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toLocaleTimeString does not implement [[Construct]] + Date.prototype.toLocaleTimeString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 bb4fdb252c..1d6e8d2d27 100644 --- a/test/built-ins/Date/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toString does not implement [[Construct]] + Date.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 982f5e3904..c55fd5ac3d 100644 --- a/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toTimeString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toTimeString does not implement [[Construct]] + Date.prototype.toTimeString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5d73d2d667..1554cb55be 100644 --- a/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js +++ b/test/built-ins/Date/prototype/toUTCString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.toUTCString does not implement [[Construct]] + Date.prototype.toUTCString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 75402d9350..ce4a2083f0 100644 --- a/test/built-ins/Date/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Date/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Date.prototype.valueOf does not implement [[Construct]] + Date.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 759bcba8c5..ce2591120f 100644 --- a/test/built-ins/Error/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Error/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Error.prototype.toString does not implement [[Construct]] + Error.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c0153f1dda..681edf810c 100644 --- a/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/cleanupSome/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - FinalizationRegistry.prototype.cleanupSome does not implement [[Construct]] + FinalizationRegistry.prototype.cleanupSome does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, FinalizationRegistry, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 357248e1b0..4599b8016e 100644 --- a/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/register/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - FinalizationRegistry.prototype.register does not implement [[Construct]] + FinalizationRegistry.prototype.register does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, FinalizationRegistry, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 29883694f2..530a432f3b 100644 --- a/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js +++ b/test/built-ins/FinalizationRegistry/prototype/unregister/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - FinalizationRegistry.prototype.unregister does not implement [[Construct]] + FinalizationRegistry.prototype.unregister does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, FinalizationRegistry, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 1ea7ee265f..5aba8c562d 100644 --- a/test/built-ins/Function/prototype/apply/not-a-constructor.js +++ b/test/built-ins/Function/prototype/apply/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Function.prototype.apply does not implement [[Construct]] + Function.prototype.apply does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( 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 880e23cd2a..2ad5ab62a7 100644 --- a/test/built-ins/Function/prototype/bind/not-a-constructor.js +++ b/test/built-ins/Function/prototype/bind/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Function.prototype.bind does not implement [[Construct]] + Function.prototype.bind does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 82b1f87af1..acf5ea09da 100644 --- a/test/built-ins/Function/prototype/call/not-a-constructor.js +++ b/test/built-ins/Function/prototype/call/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Function.prototype.call does not implement [[Construct]] + Function.prototype.call does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.call(); }, '`new Function.prototype.call()` 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 7257bf46da..695d09e85b 100644 --- a/test/built-ins/Function/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Function/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Function.prototype.toString does not implement [[Construct]] + Function.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Function.prototype.toString(); }, '`new Function.prototype.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 7130a01db2..2db989485f 100644 --- a/test/built-ins/GeneratorPrototype/next/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/next/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getPrototypeOf((function* g() {}).prototype).next does not implement [[Construct]] + Object.getPrototypeOf((function* g() {}).prototype).next does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, generators, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 7ebbd948a8..3ab0be9b0f 100644 --- a/test/built-ins/GeneratorPrototype/return/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/return/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getPrototypeOf((function* g() {}).prototype).return does not implement [[Construct]] + Object.getPrototypeOf((function* g() {}).prototype).return does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, generators, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a48a07151e..4500375213 100644 --- a/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js +++ b/test/built-ins/GeneratorPrototype/throw/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getPrototypeOf((function* g() {}).prototype).throw does not implement [[Construct]] + Object.getPrototypeOf((function* g() {}).prototype).throw does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, generators, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a815cded6e..2ae56da307 100644 --- a/test/built-ins/JSON/parse/not-a-constructor.js +++ b/test/built-ins/JSON/parse/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - JSON.parse does not implement [[Construct]] + JSON.parse does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 cd2294c6f4..e702a03026 100644 --- a/test/built-ins/JSON/stringify/not-a-constructor.js +++ b/test/built-ins/JSON/stringify/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - JSON.stringify does not implement [[Construct]] + JSON.stringify does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 a46d9fe1af..a6c92886f3 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype[Symbol.iterator] does not implement [[Construct]] + Map.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.iterator, Map, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 8649892500..1e6c7282f5 100644 --- a/test/built-ins/Map/prototype/clear/not-a-constructor.js +++ b/test/built-ins/Map/prototype/clear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.clear does not implement [[Construct]] + Map.prototype.clear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7c804d71e7..52a9916fc1 100644 --- a/test/built-ins/Map/prototype/delete/not-a-constructor.js +++ b/test/built-ins/Map/prototype/delete/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.delete does not implement [[Construct]] + Map.prototype.delete does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 e2824cea2e..023001bd26 100644 --- a/test/built-ins/Map/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Map/prototype/entries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.entries does not implement [[Construct]] + Map.prototype.entries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 beeb01363b..95f15cbe1f 100644 --- a/test/built-ins/Map/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Map/prototype/forEach/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.forEach does not implement [[Construct]] + Map.prototype.forEach does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e2b6e2471e..aeca2580c7 100644 --- a/test/built-ins/Map/prototype/get/not-a-constructor.js +++ b/test/built-ins/Map/prototype/get/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.get does not implement [[Construct]] + Map.prototype.get does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 3338db48af..ff3861b4ff 100644 --- a/test/built-ins/Map/prototype/has/not-a-constructor.js +++ b/test/built-ins/Map/prototype/has/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.has does not implement [[Construct]] + Map.prototype.has does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 9d84207e33..d35257af21 100644 --- a/test/built-ins/Map/prototype/keys/not-a-constructor.js +++ b/test/built-ins/Map/prototype/keys/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.keys does not implement [[Construct]] + Map.prototype.keys does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 3997fda7da..3601f7804d 100644 --- a/test/built-ins/Map/prototype/set/not-a-constructor.js +++ b/test/built-ins/Map/prototype/set/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.set does not implement [[Construct]] + Map.prototype.set does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 547008e405..20adb0c8d7 100644 --- a/test/built-ins/Map/prototype/values/not-a-constructor.js +++ b/test/built-ins/Map/prototype/values/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Map.prototype.values does not implement [[Construct]] + Map.prototype.values does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Map, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 821a976491..9f97ccbb53 100644 --- a/test/built-ins/Math/abs/not-a-constructor.js +++ b/test/built-ins/Math/abs/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.abs does not implement [[Construct]] + Math.abs does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7632a4261b..438e1b23a8 100644 --- a/test/built-ins/Math/acos/not-a-constructor.js +++ b/test/built-ins/Math/acos/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.acos does not implement [[Construct]] + Math.acos does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 da6c7b7a91..549888fe9b 100644 --- a/test/built-ins/Math/acosh/not-a-constructor.js +++ b/test/built-ins/Math/acosh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.acosh does not implement [[Construct]] + Math.acosh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 86f41330fb..c53025a164 100644 --- a/test/built-ins/Math/asin/not-a-constructor.js +++ b/test/built-ins/Math/asin/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.asin does not implement [[Construct]] + Math.asin does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 e8c6be7bfc..1803000c2a 100644 --- a/test/built-ins/Math/asinh/not-a-constructor.js +++ b/test/built-ins/Math/asinh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.asinh does not implement [[Construct]] + Math.asinh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 79e508eeaf..d6037d6b22 100644 --- a/test/built-ins/Math/atan/not-a-constructor.js +++ b/test/built-ins/Math/atan/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.atan does not implement [[Construct]] + Math.atan does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 8a70d3a3c3..54f3ab02f3 100644 --- a/test/built-ins/Math/atan2/not-a-constructor.js +++ b/test/built-ins/Math/atan2/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.atan2 does not implement [[Construct]] + Math.atan2 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 3453a851f0..d1b9fe8f5e 100644 --- a/test/built-ins/Math/atanh/not-a-constructor.js +++ b/test/built-ins/Math/atanh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.atanh does not implement [[Construct]] + Math.atanh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7f989bd79b..219a13e7b3 100644 --- a/test/built-ins/Math/cbrt/not-a-constructor.js +++ b/test/built-ins/Math/cbrt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.cbrt does not implement [[Construct]] + Math.cbrt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 06fe934984..d98f5ad522 100644 --- a/test/built-ins/Math/ceil/not-a-constructor.js +++ b/test/built-ins/Math/ceil/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.ceil does not implement [[Construct]] + Math.ceil does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 69bb0dedd9..19c24d11b1 100644 --- a/test/built-ins/Math/clz32/not-a-constructor.js +++ b/test/built-ins/Math/clz32/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.clz32 does not implement [[Construct]] + Math.clz32 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 4fc4400f77..1de13988cc 100644 --- a/test/built-ins/Math/cos/not-a-constructor.js +++ b/test/built-ins/Math/cos/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.cos does not implement [[Construct]] + Math.cos does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 94c919f2dc..d1c27bbb92 100644 --- a/test/built-ins/Math/cosh/not-a-constructor.js +++ b/test/built-ins/Math/cosh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.cosh does not implement [[Construct]] + Math.cosh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 4f26dfbd28..627ac218ff 100644 --- a/test/built-ins/Math/exp/not-a-constructor.js +++ b/test/built-ins/Math/exp/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.exp does not implement [[Construct]] + Math.exp does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 6d59db44fc..aa1ec5f5ea 100644 --- a/test/built-ins/Math/expm1/not-a-constructor.js +++ b/test/built-ins/Math/expm1/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.expm1 does not implement [[Construct]] + Math.expm1 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 4addd3abd3..e6e816c378 100644 --- a/test/built-ins/Math/floor/not-a-constructor.js +++ b/test/built-ins/Math/floor/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.floor does not implement [[Construct]] + Math.floor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 fc5543babb..307a77e8de 100644 --- a/test/built-ins/Math/fround/not-a-constructor.js +++ b/test/built-ins/Math/fround/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.fround does not implement [[Construct]] + Math.fround does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5b497f4c7c..90c502222f 100644 --- a/test/built-ins/Math/hypot/not-a-constructor.js +++ b/test/built-ins/Math/hypot/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.hypot does not implement [[Construct]] + Math.hypot does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 8884b15f63..a7778acc51 100644 --- a/test/built-ins/Math/imul/not-a-constructor.js +++ b/test/built-ins/Math/imul/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.imul does not implement [[Construct]] + Math.imul does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5435e4bb3d..cc6fc9f873 100644 --- a/test/built-ins/Math/log/not-a-constructor.js +++ b/test/built-ins/Math/log/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.log does not implement [[Construct]] + Math.log does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 58c759918d..2dd276a0fb 100644 --- a/test/built-ins/Math/log10/not-a-constructor.js +++ b/test/built-ins/Math/log10/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.log10 does not implement [[Construct]] + Math.log10 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 06e952d8f8..bfb7f5bc54 100644 --- a/test/built-ins/Math/log1p/not-a-constructor.js +++ b/test/built-ins/Math/log1p/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.log1p does not implement [[Construct]] + Math.log1p does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 c08eddae0b..386acaac2a 100644 --- a/test/built-ins/Math/log2/not-a-constructor.js +++ b/test/built-ins/Math/log2/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.log2 does not implement [[Construct]] + Math.log2 does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 f0811b3cf8..5a53a7d382 100644 --- a/test/built-ins/Math/max/not-a-constructor.js +++ b/test/built-ins/Math/max/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.max does not implement [[Construct]] + Math.max does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 47370e4411..e5a77a1b64 100644 --- a/test/built-ins/Math/min/not-a-constructor.js +++ b/test/built-ins/Math/min/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.min does not implement [[Construct]] + Math.min does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 fad4c25dbf..7ca5ac400d 100644 --- a/test/built-ins/Math/pow/not-a-constructor.js +++ b/test/built-ins/Math/pow/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.pow does not implement [[Construct]] + Math.pow does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 55752baca5..9dce5ebb91 100644 --- a/test/built-ins/Math/random/not-a-constructor.js +++ b/test/built-ins/Math/random/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.random does not implement [[Construct]] + Math.random does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 2f9ada06a9..8021cf1f33 100644 --- a/test/built-ins/Math/round/not-a-constructor.js +++ b/test/built-ins/Math/round/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.round does not implement [[Construct]] + Math.round does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 df7cf0ed0c..a6706b1c86 100644 --- a/test/built-ins/Math/sign/not-a-constructor.js +++ b/test/built-ins/Math/sign/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.sign does not implement [[Construct]] + Math.sign does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 cba00547f6..d3a124ee89 100644 --- a/test/built-ins/Math/sin/not-a-constructor.js +++ b/test/built-ins/Math/sin/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.sin does not implement [[Construct]] + Math.sin does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 d669d71faf..c5c9a1cb8b 100644 --- a/test/built-ins/Math/sinh/not-a-constructor.js +++ b/test/built-ins/Math/sinh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.sinh does not implement [[Construct]] + Math.sinh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 a542d1ecf6..a74a165165 100644 --- a/test/built-ins/Math/sqrt/not-a-constructor.js +++ b/test/built-ins/Math/sqrt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.sqrt does not implement [[Construct]] + Math.sqrt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 bc053f5275..39343eabb5 100644 --- a/test/built-ins/Math/tan/not-a-constructor.js +++ b/test/built-ins/Math/tan/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.tan does not implement [[Construct]] + Math.tan does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 b91f195000..654287259e 100644 --- a/test/built-ins/Math/tanh/not-a-constructor.js +++ b/test/built-ins/Math/tanh/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.tanh does not implement [[Construct]] + Math.tanh does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7abd8df2c0..8f05f27159 100644 --- a/test/built-ins/Math/trunc/not-a-constructor.js +++ b/test/built-ins/Math/trunc/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Math.trunc does not implement [[Construct]] + Math.trunc does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 ec49e89efb..2e98a09208 100644 --- a/test/built-ins/Number/isFinite/not-a-constructor.js +++ b/test/built-ins/Number/isFinite/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.isFinite does not implement [[Construct]] + Number.isFinite does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5f1c73de68..38afae3fbc 100644 --- a/test/built-ins/Number/isInteger/not-a-constructor.js +++ b/test/built-ins/Number/isInteger/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.isInteger does not implement [[Construct]] + Number.isInteger does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 009245ce64..a08feb4889 100644 --- a/test/built-ins/Number/isNaN/not-a-constructor.js +++ b/test/built-ins/Number/isNaN/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.isNaN does not implement [[Construct]] + Number.isNaN does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 60af065748..1a12c01a7f 100644 --- a/test/built-ins/Number/isSafeInteger/not-a-constructor.js +++ b/test/built-ins/Number/isSafeInteger/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.isSafeInteger does not implement [[Construct]] + Number.isSafeInteger does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 a756f03d61..47c8d66ff6 100644 --- a/test/built-ins/Number/parseFloat/not-a-constructor.js +++ b/test/built-ins/Number/parseFloat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.parseFloat does not implement [[Construct]] + Number.parseFloat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 9a3936fe52..01a45b57de 100644 --- a/test/built-ins/Number/parseInt/not-a-constructor.js +++ b/test/built-ins/Number/parseInt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.parseInt does not implement [[Construct]] + Number.parseInt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 3a72ca7fac..0b527a0da7 100644 --- a/test/built-ins/Number/prototype/toExponential/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toExponential/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.toExponential does not implement [[Construct]] + Number.prototype.toExponential does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 3a85fd9ba9..cac5784b5b 100644 --- a/test/built-ins/Number/prototype/toFixed/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toFixed/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.toFixed does not implement [[Construct]] + Number.prototype.toFixed does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 1e76f2e4b4..3def72b7a6 100644 --- a/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toLocaleString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.toLocaleString does not implement [[Construct]] + Number.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a53a27b89c..a53b9c41a6 100644 --- a/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toPrecision/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.toPrecision does not implement [[Construct]] + Number.prototype.toPrecision does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 07463ab860..67daa524ca 100644 --- a/test/built-ins/Number/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Number/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.toString does not implement [[Construct]] + Number.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 18c83fe80e..c7ed674693 100644 --- a/test/built-ins/Number/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Number/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Number.prototype.valueOf does not implement [[Construct]] + Number.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 26ba247af5..f2e0f85385 100644 --- a/test/built-ins/Object/assign/not-a-constructor.js +++ b/test/built-ins/Object/assign/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.assign does not implement [[Construct]] + Object.assign does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 6c54b5f32e..cb5d71fe8e 100644 --- a/test/built-ins/Object/create/not-a-constructor.js +++ b/test/built-ins/Object/create/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.create does not implement [[Construct]] + Object.create does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 fc32fa9e2d..c706111611 100644 --- a/test/built-ins/Object/defineProperties/not-a-constructor.js +++ b/test/built-ins/Object/defineProperties/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.defineProperties does not implement [[Construct]] + Object.defineProperties does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5432ca72db..161b10dc1a 100644 --- a/test/built-ins/Object/defineProperty/not-a-constructor.js +++ b/test/built-ins/Object/defineProperty/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.defineProperty does not implement [[Construct]] + Object.defineProperty does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 63d6359485..534f224b23 100644 --- a/test/built-ins/Object/entries/not-a-constructor.js +++ b/test/built-ins/Object/entries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.entries does not implement [[Construct]] + Object.entries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 9c126fcba2..df3fa4f306 100644 --- a/test/built-ins/Object/freeze/not-a-constructor.js +++ b/test/built-ins/Object/freeze/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.freeze does not implement [[Construct]] + Object.freeze does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 fd9ab8da3e..891f5fd181 100644 --- a/test/built-ins/Object/fromEntries/not-a-constructor.js +++ b/test/built-ins/Object/fromEntries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.fromEntries does not implement [[Construct]] + Object.fromEntries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Object.fromEntries, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 ca919af3e0..318fd4ce58 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getOwnPropertyDescriptor does not implement [[Construct]] + Object.getOwnPropertyDescriptor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 ef8fd3d1f8..a4b02ca412 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyDescriptors/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getOwnPropertyDescriptors does not implement [[Construct]] + Object.getOwnPropertyDescriptors does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 98c29dbcbd..48805a1758 100644 --- a/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertyNames/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getOwnPropertyNames does not implement [[Construct]] + Object.getOwnPropertyNames does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 27f302676d..323b9f6b3f 100644 --- a/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js +++ b/test/built-ins/Object/getOwnPropertySymbols/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getOwnPropertySymbols does not implement [[Construct]] + Object.getOwnPropertySymbols does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5064fc08c7..020ebb30bb 100644 --- a/test/built-ins/Object/getPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/getPrototypeOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.getPrototypeOf does not implement [[Construct]] + Object.getPrototypeOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new Object.getPrototypeOf({}); }, '`new Object.getPrototypeOf({})` 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 e798b75a2b..a032f43368 100644 --- a/test/built-ins/Object/is/not-a-constructor.js +++ b/test/built-ins/Object/is/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.is does not implement [[Construct]] + Object.is does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Object.is, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 fd01fb059f..9b50b5854e 100644 --- a/test/built-ins/Object/isExtensible/not-a-constructor.js +++ b/test/built-ins/Object/isExtensible/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.isExtensible does not implement [[Construct]] + Object.isExtensible does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 b1acf2c2ae..2f5f503a16 100644 --- a/test/built-ins/Object/isFrozen/not-a-constructor.js +++ b/test/built-ins/Object/isFrozen/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.isFrozen does not implement [[Construct]] + Object.isFrozen does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 67afdadf18..8a550989f1 100644 --- a/test/built-ins/Object/isSealed/not-a-constructor.js +++ b/test/built-ins/Object/isSealed/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.isSealed does not implement [[Construct]] + Object.isSealed does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 010d83a3ff..b873f8a1b6 100644 --- a/test/built-ins/Object/keys/not-a-constructor.js +++ b/test/built-ins/Object/keys/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.keys does not implement [[Construct]] + Object.keys does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 85c7193e4c..04d51dc717 100644 --- a/test/built-ins/Object/preventExtensions/not-a-constructor.js +++ b/test/built-ins/Object/preventExtensions/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.preventExtensions does not implement [[Construct]] + Object.preventExtensions does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 9127a90363..2611407aa9 100644 --- a/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js +++ b/test/built-ins/Object/prototype/hasOwnProperty/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.hasOwnProperty does not implement [[Construct]] + Object.prototype.hasOwnProperty does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 38357e0cd9..f04cd71fbe 100644 --- a/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/prototype/isPrototypeOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.isPrototypeOf does not implement [[Construct]] + Object.prototype.isPrototypeOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 eb1170bad3..9006098f1c 100644 --- a/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js +++ b/test/built-ins/Object/prototype/propertyIsEnumerable/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.propertyIsEnumerable does not implement [[Construct]] + Object.prototype.propertyIsEnumerable does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 3d67be4488..f5ee600503 100644 --- a/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/Object/prototype/toLocaleString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.toLocaleString does not implement [[Construct]] + Object.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 1e37e46510..f9f86e4810 100644 --- a/test/built-ins/Object/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Object/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.toString does not implement [[Construct]] + Object.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 7f87d77208..380aa7a29f 100644 --- a/test/built-ins/Object/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Object/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.prototype.valueOf does not implement [[Construct]] + Object.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 88f74d963f..1c6e7a0077 100644 --- a/test/built-ins/Object/seal/not-a-constructor.js +++ b/test/built-ins/Object/seal/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.seal does not implement [[Construct]] + Object.seal does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 967903fc80..a411a6312c 100644 --- a/test/built-ins/Object/setPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Object/setPrototypeOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.setPrototypeOf does not implement [[Construct]] + Object.setPrototypeOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 50ce82012b..a1e909c5f4 100644 --- a/test/built-ins/Object/values/not-a-constructor.js +++ b/test/built-ins/Object/values/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Object.values does not implement [[Construct]] + Object.values does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 98dd7fc190..f4dc6ea530 100644 --- a/test/built-ins/Promise/all/not-a-constructor.js +++ b/test/built-ins/Promise/all/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.all does not implement [[Construct]] + Promise.all does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 f519716f8f..69daf018c2 100644 --- a/test/built-ins/Promise/allSettled/not-a-constructor.js +++ b/test/built-ins/Promise/allSettled/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.allSettled does not implement [[Construct]] + Promise.allSettled does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Promise.allSettled, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 f739b23307..85bd0685a9 100644 --- a/test/built-ins/Promise/any/not-a-constructor.js +++ b/test/built-ins/Promise/any/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.any does not implement [[Construct]] + Promise.any does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Promise.any, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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/prototype/catch/not-a-constructor.js b/test/built-ins/Promise/prototype/catch/not-a-constructor.js index 722d1982cf..2e56c34ba5 100644 --- a/test/built-ins/Promise/prototype/catch/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/catch/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.prototype.catch does not implement [[Construct]] + Promise.prototype.catch does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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/not-a-constructor.js b/test/built-ins/Promise/prototype/finally/not-a-constructor.js index c6e2a37bc1..edb3f98818 100644 --- a/test/built-ins/Promise/prototype/finally/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/finally/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.prototype.finally does not implement [[Construct]] + Promise.prototype.finally does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Promise.prototype.finally, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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/then/not-a-constructor.js b/test/built-ins/Promise/prototype/then/not-a-constructor.js index 8e1c13b249..d961a6513b 100644 --- a/test/built-ins/Promise/prototype/then/not-a-constructor.js +++ b/test/built-ins/Promise/prototype/then/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.prototype.then does not implement [[Construct]] + Promise.prototype.then does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 347c54736f..de1ee65e78 100644 --- a/test/built-ins/Promise/race/not-a-constructor.js +++ b/test/built-ins/Promise/race/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.race does not implement [[Construct]] + Promise.race does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 9c8498de90..2b394dc1e3 100644 --- a/test/built-ins/Promise/reject/not-a-constructor.js +++ b/test/built-ins/Promise/reject/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.reject does not implement [[Construct]] + Promise.reject does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 422bbe0b7c..a75ccd6ad2 100644 --- a/test/built-ins/Promise/resolve/not-a-constructor.js +++ b/test/built-ins/Promise/resolve/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Promise.resolve does not implement [[Construct]] + Promise.resolve does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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/revocable/not-a-constructor.js b/test/built-ins/Proxy/revocable/not-a-constructor.js index f61a0a1df7..239917f51e 100644 --- a/test/built-ins/Proxy/revocable/not-a-constructor.js +++ b/test/built-ins/Proxy/revocable/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Proxy.revocable does not implement [[Construct]] + Proxy.revocable does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function, Proxy] ---*/ diff --git a/test/built-ins/Reflect/apply/not-a-constructor.js b/test/built-ins/Reflect/apply/not-a-constructor.js index cda2a97d23..b2811c8e56 100644 --- a/test/built-ins/Reflect/apply/not-a-constructor.js +++ b/test/built-ins/Reflect/apply/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.apply does not implement [[Construct]] + Reflect.apply does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 4a053f04b6..e43abfe6dc 100644 --- a/test/built-ins/Reflect/construct/not-a-constructor.js +++ b/test/built-ins/Reflect/construct/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.construct does not implement [[Construct]] + Reflect.construct does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 30cf37a9e3..a65da86ecd 100644 --- a/test/built-ins/Reflect/defineProperty/not-a-constructor.js +++ b/test/built-ins/Reflect/defineProperty/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.defineProperty does not implement [[Construct]] + Reflect.defineProperty does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 928f46bd11..6fb9dfb569 100644 --- a/test/built-ins/Reflect/deleteProperty/not-a-constructor.js +++ b/test/built-ins/Reflect/deleteProperty/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.deleteProperty does not implement [[Construct]] + Reflect.deleteProperty does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c5971fb332..9f793ba174 100644 --- a/test/built-ins/Reflect/get/not-a-constructor.js +++ b/test/built-ins/Reflect/get/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.get does not implement [[Construct]] + Reflect.get does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5a59ddc41f..cccc405117 100644 --- a/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js +++ b/test/built-ins/Reflect/getOwnPropertyDescriptor/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.getOwnPropertyDescriptor does not implement [[Construct]] + Reflect.getOwnPropertyDescriptor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 18bd7be95a..bcb15a7343 100644 --- a/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Reflect/getPrototypeOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.getPrototypeOf does not implement [[Construct]] + Reflect.getPrototypeOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 d2ccbb966c..c91a336f08 100644 --- a/test/built-ins/Reflect/has/not-a-constructor.js +++ b/test/built-ins/Reflect/has/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.has does not implement [[Construct]] + Reflect.has does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 00e4480b24..3b572d8f70 100644 --- a/test/built-ins/Reflect/isExtensible/not-a-constructor.js +++ b/test/built-ins/Reflect/isExtensible/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.isExtensible does not implement [[Construct]] + Reflect.isExtensible does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 48d2876801..d4c2f374bd 100644 --- a/test/built-ins/Reflect/ownKeys/not-a-constructor.js +++ b/test/built-ins/Reflect/ownKeys/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.ownKeys does not implement [[Construct]] + Reflect.ownKeys does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 a0197cded6..e5ffeddf09 100644 --- a/test/built-ins/Reflect/preventExtensions/not-a-constructor.js +++ b/test/built-ins/Reflect/preventExtensions/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.preventExtensions does not implement [[Construct]] + Reflect.preventExtensions does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 71819b568c..4a2aed58c8 100644 --- a/test/built-ins/Reflect/set/not-a-constructor.js +++ b/test/built-ins/Reflect/set/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.set does not implement [[Construct]] + Reflect.set does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, Reflect.set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 757bad1fc7..f6e35bbb4f 100644 --- a/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js +++ b/test/built-ins/Reflect/setPrototypeOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Reflect.setPrototypeOf does not implement [[Construct]] + Reflect.setPrototypeOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Reflect, Reflect.setPrototypeOf, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e8c4e00b02..55a8d64a06 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype[Symbol.match] does not implement [[Construct]] + RegExp.prototype[Symbol.match] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.match, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 7183035ab3..a9ce4c3313 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype[Symbol.matchAll] does not implement [[Construct]] + RegExp.prototype[Symbol.matchAll] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.match, Symbol.matchAll, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b8ee0a8d4e..27efa6ba94 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype[Symbol.replace] does not implement [[Construct]] + RegExp.prototype[Symbol.replace] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.replace, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 74c2a6121b..40bcd94edc 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype[Symbol.search] does not implement [[Construct]] + RegExp.prototype[Symbol.search] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.search, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 2bfd76e978..04d5ab6b2f 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype[Symbol.split] does not implement [[Construct]] + RegExp.prototype[Symbol.split] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.split, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 e71752f8e9..580c05ab33 100644 --- a/test/built-ins/RegExp/prototype/exec/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/exec/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype.exec does not implement [[Construct]] + RegExp.prototype.exec does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 86b8f9da23..a32652cbb7 100644 --- a/test/built-ins/RegExp/prototype/test/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/test/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype.test does not implement [[Construct]] + RegExp.prototype.test does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 bf27374f53..44e260bba6 100644 --- a/test/built-ins/RegExp/prototype/toString/not-a-constructor.js +++ b/test/built-ins/RegExp/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - RegExp.prototype.toString does not implement [[Construct]] + RegExp.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a40673cb2f..42a7102d3e 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype[Symbol.iterator] does not implement [[Construct]] + Set.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.iterator, Set, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b57c17c05d..382480da16 100644 --- a/test/built-ins/Set/prototype/add/not-a-constructor.js +++ b/test/built-ins/Set/prototype/add/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.add does not implement [[Construct]] + Set.prototype.add does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 945b19a6ea..a77944c3c1 100644 --- a/test/built-ins/Set/prototype/clear/not-a-constructor.js +++ b/test/built-ins/Set/prototype/clear/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.clear does not implement [[Construct]] + Set.prototype.clear does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5561983d12..2f8af10509 100644 --- a/test/built-ins/Set/prototype/delete/not-a-constructor.js +++ b/test/built-ins/Set/prototype/delete/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.delete does not implement [[Construct]] + Set.prototype.delete does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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/entries/not-a-constructor.js b/test/built-ins/Set/prototype/entries/not-a-constructor.js index 859fb3bdd0..2bf6867dac 100644 --- a/test/built-ins/Set/prototype/entries/not-a-constructor.js +++ b/test/built-ins/Set/prototype/entries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.entries does not implement [[Construct]] + Set.prototype.entries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 81182abcc3..d62c98fa41 100644 --- a/test/built-ins/Set/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/Set/prototype/forEach/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.forEach does not implement [[Construct]] + Set.prototype.forEach does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4b102b8e17..6a3d35e64e 100644 --- a/test/built-ins/Set/prototype/has/not-a-constructor.js +++ b/test/built-ins/Set/prototype/has/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.has does not implement [[Construct]] + Set.prototype.has does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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/values/not-a-constructor.js b/test/built-ins/Set/prototype/values/not-a-constructor.js index c3f8ba336e..8eb928e23c 100644 --- a/test/built-ins/Set/prototype/values/not-a-constructor.js +++ b/test/built-ins/Set/prototype/values/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Set.prototype.values does not implement [[Construct]] + Set.prototype.values does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Set, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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/SharedArrayBuffer/prototype/slice/not-a-constructor.js b/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js index 616bc0eb26..91ff6371cd 100644 --- a/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js +++ b/test/built-ins/SharedArrayBuffer/prototype/slice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - SharedArrayBuffer.prototype.slice does not implement [[Construct]] + SharedArrayBuffer.prototype.slice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, SharedArrayBuffer, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 a8cb8b48ee..1d83e36583 100644 --- a/test/built-ins/String/fromCharCode/not-a-constructor.js +++ b/test/built-ins/String/fromCharCode/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.fromCharCode does not implement [[Construct]] + String.fromCharCode does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 368d4d1007..15e5425b9f 100644 --- a/test/built-ins/String/fromCodePoint/not-a-constructor.js +++ b/test/built-ins/String/fromCodePoint/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.fromCodePoint does not implement [[Construct]] + String.fromCodePoint does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 7cb4e8c4ee..0bcce071dc 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype[Symbol.iterator] does not implement [[Construct]] + String.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, Symbol.iterator, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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/charAt/not-a-constructor.js b/test/built-ins/String/prototype/charAt/not-a-constructor.js index b21223e71a..55136b1052 100644 --- a/test/built-ins/String/prototype/charAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/charAt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.charAt does not implement [[Construct]] + String.prototype.charAt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 14a54d57fb..d0458dd12e 100644 --- a/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/charCodeAt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.charCodeAt does not implement [[Construct]] + String.prototype.charCodeAt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 9a0a56966c..f38dbb653f 100644 --- a/test/built-ins/String/prototype/codePointAt/not-a-constructor.js +++ b/test/built-ins/String/prototype/codePointAt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.codePointAt does not implement [[Construct]] + String.prototype.codePointAt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 236dbeb738..e6306ef9ff 100644 --- a/test/built-ins/String/prototype/concat/not-a-constructor.js +++ b/test/built-ins/String/prototype/concat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.concat does not implement [[Construct]] + String.prototype.concat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0599d56526..c4280c5c01 100644 --- a/test/built-ins/String/prototype/endsWith/not-a-constructor.js +++ b/test/built-ins/String/prototype/endsWith/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.endsWith does not implement [[Construct]] + String.prototype.endsWith does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, String.prototype.endsWith, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5409d9020c..c8c5a9692b 100644 --- a/test/built-ins/String/prototype/includes/not-a-constructor.js +++ b/test/built-ins/String/prototype/includes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.includes does not implement [[Construct]] + String.prototype.includes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5c52308256..02c05b0638 100644 --- a/test/built-ins/String/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/indexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.indexOf does not implement [[Construct]] + String.prototype.indexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.indexOf(); }, '`new String.prototype.indexOf()` 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 2597640e6a..3613f4fb6e 100644 --- a/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/lastIndexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.lastIndexOf does not implement [[Construct]] + String.prototype.lastIndexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 2d39418212..4d87248ae0 100644 --- a/test/built-ins/String/prototype/localeCompare/not-a-constructor.js +++ b/test/built-ins/String/prototype/localeCompare/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.localeCompare does not implement [[Construct]] + String.prototype.localeCompare does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 627706fddd..3b79a08a5f 100644 --- a/test/built-ins/String/prototype/match/not-a-constructor.js +++ b/test/built-ins/String/prototype/match/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.match does not implement [[Construct]] + String.prototype.match does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 78169cd6d7..aa6b43ed32 100644 --- a/test/built-ins/String/prototype/matchAll/not-a-constructor.js +++ b/test/built-ins/String/prototype/matchAll/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.matchAll does not implement [[Construct]] + String.prototype.matchAll does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, String.prototype.matchAll, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 cb43168f01..b854e49508 100644 --- a/test/built-ins/String/prototype/normalize/not-a-constructor.js +++ b/test/built-ins/String/prototype/normalize/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.normalize does not implement [[Construct]] + String.prototype.normalize does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 31eb29dbcb..ad3862c1e5 100644 --- a/test/built-ins/String/prototype/padEnd/not-a-constructor.js +++ b/test/built-ins/String/prototype/padEnd/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.padEnd does not implement [[Construct]] + String.prototype.padEnd does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4cfb176e8d..d236a68826 100644 --- a/test/built-ins/String/prototype/padStart/not-a-constructor.js +++ b/test/built-ins/String/prototype/padStart/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.padStart does not implement [[Construct]] + String.prototype.padStart does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 6ad404f2f1..d0a4b17a87 100644 --- a/test/built-ins/String/prototype/repeat/not-a-constructor.js +++ b/test/built-ins/String/prototype/repeat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.repeat does not implement [[Construct]] + String.prototype.repeat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5880ee7ee6..dff9afadd9 100644 --- a/test/built-ins/String/prototype/replace/not-a-constructor.js +++ b/test/built-ins/String/prototype/replace/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.replace does not implement [[Construct]] + String.prototype.replace does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 51443f416d..0589233c05 100644 --- a/test/built-ins/String/prototype/replaceAll/not-a-constructor.js +++ b/test/built-ins/String/prototype/replaceAll/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.replaceAll does not implement [[Construct]] + String.prototype.replaceAll does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 f5c73a5c74..8b2dc50c63 100644 --- a/test/built-ins/String/prototype/search/not-a-constructor.js +++ b/test/built-ins/String/prototype/search/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.search does not implement [[Construct]] + String.prototype.search does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0cf9569d5b..334f2f3895 100644 --- a/test/built-ins/String/prototype/slice/not-a-constructor.js +++ b/test/built-ins/String/prototype/slice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.slice does not implement [[Construct]] + String.prototype.slice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c60b20c666..45abb4ad1e 100644 --- a/test/built-ins/String/prototype/split/not-a-constructor.js +++ b/test/built-ins/String/prototype/split/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.split does not implement [[Construct]] + String.prototype.split does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 64f31aa037..588e3e232c 100644 --- a/test/built-ins/String/prototype/startsWith/not-a-constructor.js +++ b/test/built-ins/String/prototype/startsWith/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.startsWith does not implement [[Construct]] + String.prototype.startsWith does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 9819d567b7..54d8baf605 100644 --- a/test/built-ins/String/prototype/substring/not-a-constructor.js +++ b/test/built-ins/String/prototype/substring/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.substring does not implement [[Construct]] + String.prototype.substring does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5037dd1678..a2573222c0 100644 --- a/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLocaleLowerCase/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.toLocaleLowerCase does not implement [[Construct]] + String.prototype.toLocaleLowerCase does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 292495a415..08faf17913 100644 --- a/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLocaleUpperCase/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.toLocaleUpperCase does not implement [[Construct]] + String.prototype.toLocaleUpperCase does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 57a5ddc16b..ecba2acf88 100644 --- a/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toLowerCase/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.toLowerCase does not implement [[Construct]] + String.prototype.toLowerCase does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 518e740934..ddbb986b94 100644 --- a/test/built-ins/String/prototype/toString/not-a-constructor.js +++ b/test/built-ins/String/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.toString does not implement [[Construct]] + String.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 de98916a69..c19680c786 100644 --- a/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js +++ b/test/built-ins/String/prototype/toUpperCase/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.toUpperCase does not implement [[Construct]] + String.prototype.toUpperCase does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ assert.sameValue( assert.throws(TypeError, () => { new String.prototype.toUpperCase(); }, '`new String.prototype.toUpperCase()` 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 64895d417e..62932f797f 100644 --- a/test/built-ins/String/prototype/trim/not-a-constructor.js +++ b/test/built-ins/String/prototype/trim/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.trim does not implement [[Construct]] + String.prototype.trim does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 0620d5bffa..6ffaae933f 100644 --- a/test/built-ins/String/prototype/trimEnd/not-a-constructor.js +++ b/test/built-ins/String/prototype/trimEnd/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.trimEnd does not implement [[Construct]] + String.prototype.trimEnd does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, string-trimming, String.prototype.trimEnd, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 c81a16abc3..b612215d0a 100644 --- a/test/built-ins/String/prototype/trimStart/not-a-constructor.js +++ b/test/built-ins/String/prototype/trimStart/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.trimStart does not implement [[Construct]] + String.prototype.trimStart does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, string-trimming, String.prototype.trimStart, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 49f5f91ac3..5c6ded7734 100644 --- a/test/built-ins/String/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/String/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.prototype.valueOf does not implement [[Construct]] + String.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 02d34d037e..460ce2eb69 100644 --- a/test/built-ins/String/raw/not-a-constructor.js +++ b/test/built-ins/String/raw/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - String.raw does not implement [[Construct]] + String.raw does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 415e98e3bf..d0779591ca 100644 --- a/test/built-ins/Symbol/for/not-a-constructor.js +++ b/test/built-ins/Symbol/for/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Symbol.for does not implement [[Construct]] + Symbol.for does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 a74d45d8d4..c1da1f79f4 100644 --- a/test/built-ins/Symbol/keyFor/not-a-constructor.js +++ b/test/built-ins/Symbol/keyFor/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Symbol.keyFor does not implement [[Construct]] + Symbol.keyFor does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 1473532e2c..8bb6e9fb8b 100644 --- a/test/built-ins/Symbol/prototype/toString/not-a-constructor.js +++ b/test/built-ins/Symbol/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Symbol.prototype.toString does not implement [[Construct]] + Symbol.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4849c17761..cbb7e7ef18 100644 --- a/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js +++ b/test/built-ins/Symbol/prototype/valueOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - Symbol.prototype.valueOf does not implement [[Construct]] + Symbol.prototype.valueOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, Symbol, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 b71a07444b..2698bc42c6 100644 --- a/test/built-ins/TypedArray/from/not-a-constructor.js +++ b/test/built-ins/TypedArray/from/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.from does not implement [[Construct]] + TypedArray.from does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 5787f8c92b..bfbf79e62d 100644 --- a/test/built-ins/TypedArray/of/not-a-constructor.js +++ b/test/built-ins/TypedArray/of/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.of does not implement [[Construct]] + TypedArray.of does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 21307f7909..a573a07e9b 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 @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype[Symbol.iterator] does not implement [[Construct]] + TypedArray.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, Symbol, Symbol.iterator, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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/copyWithin/not-a-constructor.js b/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js index c1dd022b7e..d07b461953 100644 --- a/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/copyWithin/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.copyWithin does not implement [[Construct]] + TypedArray.prototype.copyWithin does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 bf72d93264..88374ce28d 100644 --- a/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/entries/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.entries does not implement [[Construct]] + TypedArray.prototype.entries does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 9e4e591227..1176931d96 100644 --- a/test/built-ins/TypedArray/prototype/every/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/every/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.every does not implement [[Construct]] + TypedArray.prototype.every does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 934fb7655a..1dfa2a6407 100644 --- a/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/fill/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.fill does not implement [[Construct]] + TypedArray.prototype.fill does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 bedefb3e50..72914d77da 100644 --- a/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/filter/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.filter does not implement [[Construct]] + TypedArray.prototype.filter does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 0254c25ede..db1f7a8e04 100644 --- a/test/built-ins/TypedArray/prototype/find/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/find/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.find does not implement [[Construct]] + TypedArray.prototype.find does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 db6e436783..583bcdf4f2 100644 --- a/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findIndex/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.findIndex does not implement [[Construct]] + TypedArray.prototype.findIndex does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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/forEach/not-a-constructor.js b/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js index b65d20b5a3..1e44a19bd8 100644 --- a/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/forEach/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.forEach does not implement [[Construct]] + TypedArray.prototype.forEach does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 63e51be06f..a60b5acbf7 100644 --- a/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/includes/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.includes does not implement [[Construct]] + TypedArray.prototype.includes does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 48ee2069ae..2f0643221b 100644 --- a/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/indexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.indexOf does not implement [[Construct]] + TypedArray.prototype.indexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 8037bef876..9557b1b98f 100644 --- a/test/built-ins/TypedArray/prototype/join/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/join/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.join does not implement [[Construct]] + TypedArray.prototype.join does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 bda4825bb4..299f73e1ff 100644 --- a/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/keys/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.keys does not implement [[Construct]] + TypedArray.prototype.keys does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 5b33448140..321a8e8a53 100644 --- a/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/lastIndexOf/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.lastIndexOf does not implement [[Construct]] + TypedArray.prototype.lastIndexOf does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 3366aecc6c..80ac8f484a 100644 --- a/test/built-ins/TypedArray/prototype/map/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/map/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.map does not implement [[Construct]] + TypedArray.prototype.map does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 95ea768d82..1f6fc86399 100644 --- a/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reduce/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.reduce does not implement [[Construct]] + TypedArray.prototype.reduce does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 dc4bc76cb6..3096cfdac0 100644 --- a/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reduceRight/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.reduceRight does not implement [[Construct]] + TypedArray.prototype.reduceRight does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 6f75dd751f..e08f86079a 100644 --- a/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/reverse/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.reverse does not implement [[Construct]] + TypedArray.prototype.reverse does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 289ddc6733..3c7e20d723 100644 --- a/test/built-ins/TypedArray/prototype/set/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/set/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.set does not implement [[Construct]] + TypedArray.prototype.set does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 a2907322c1..b0cd44da46 100644 --- a/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/slice/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.slice does not implement [[Construct]] + TypedArray.prototype.slice does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 e9bfe385f7..37476e640f 100644 --- a/test/built-ins/TypedArray/prototype/some/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/some/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.some does not implement [[Construct]] + TypedArray.prototype.some does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 0ef4408710..8b0c964659 100644 --- a/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/sort/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.sort does not implement [[Construct]] + TypedArray.prototype.sort does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 1a75b2d18d..5dd8b47694 100644 --- a/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/subarray/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.subarray does not implement [[Construct]] + TypedArray.prototype.subarray does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 3de2607fa0..d3c0162f44 100644 --- a/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toLocaleString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.toLocaleString does not implement [[Construct]] + TypedArray.prototype.toLocaleString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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/toString/not-a-constructor.js b/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js index c2f63f75e3..a9beadaf10 100644 --- a/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/toString/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.toString does not implement [[Construct]] + TypedArray.prototype.toString does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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 85afc41980..1df6d643fe 100644 --- a/test/built-ins/TypedArray/prototype/values/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/values/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - TypedArray.prototype.values does not implement [[Construct]] + TypedArray.prototype.values does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] ---*/ @@ -24,4 +30,4 @@ 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/WeakMap/prototype/delete/not-a-constructor.js b/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js index f9bb6bffaf..f51ad3f1be 100644 --- a/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/delete/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakMap.prototype.delete does not implement [[Construct]] + WeakMap.prototype.delete does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakMap, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 ff422bd9fd..d27cc280a2 100644 --- a/test/built-ins/WeakMap/prototype/get/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/get/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakMap.prototype.get does not implement [[Construct]] + WeakMap.prototype.get does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakMap, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4b9bb88312..d8a1da2b0c 100644 --- a/test/built-ins/WeakMap/prototype/has/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/has/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakMap.prototype.has does not implement [[Construct]] + WeakMap.prototype.has does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakMap, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 5241b815e8..db26f10bb8 100644 --- a/test/built-ins/WeakMap/prototype/set/not-a-constructor.js +++ b/test/built-ins/WeakMap/prototype/set/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakMap.prototype.set does not implement [[Construct]] + WeakMap.prototype.set does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakMap, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 161baea529..a319779a33 100644 --- a/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js +++ b/test/built-ins/WeakRef/prototype/deref/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakRef.prototype.deref does not implement [[Construct]] + WeakRef.prototype.deref does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakRef, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 4e24303e0b..caa39ce8f1 100644 --- a/test/built-ins/WeakSet/prototype/add/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/add/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakSet.prototype.add does not implement [[Construct]] + WeakSet.prototype.add does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakSet, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 55d5af7693..b0d14ef076 100644 --- a/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/delete/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakSet.prototype.delete does not implement [[Construct]] + WeakSet.prototype.delete does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakSet, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 86b5f01d5e..67c1401bc0 100644 --- a/test/built-ins/WeakSet/prototype/has/not-a-constructor.js +++ b/test/built-ins/WeakSet/prototype/has/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - WeakSet.prototype.has); does not implement [[Construct]] + WeakSet.prototype.has does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, WeakSet, arrow-function] ---*/ @@ -24,4 +30,4 @@ 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 06bab4d6c7..43af3ce8ba 100644 --- a/test/built-ins/decodeURI/not-a-constructor.js +++ b/test/built-ins/decodeURI/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - decodeURI does not implement [[Construct]] + decodeURI does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 2eab6419c0..2b36ae8fd0 100644 --- a/test/built-ins/decodeURIComponent/not-a-constructor.js +++ b/test/built-ins/decodeURIComponent/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - decodeURIComponent does not implement [[Construct]] + decodeURIComponent does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 bb8b5baf97..1976bcd417 100644 --- a/test/built-ins/encodeURI/not-a-constructor.js +++ b/test/built-ins/encodeURI/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - encodeURI does not implement [[Construct]] + encodeURI does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 54dd2014b2..b14665629a 100644 --- a/test/built-ins/encodeURIComponent/not-a-constructor.js +++ b/test/built-ins/encodeURIComponent/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - encodeURIComponent does not implement [[Construct]] + encodeURIComponent does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 b79c1e960d..4dbc4523d9 100644 --- a/test/built-ins/eval/not-a-constructor.js +++ b/test/built-ins/eval/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - eval does not implement [[Construct]] + eval does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 ae4c73b0fd..55038c7f58 100644 --- a/test/built-ins/isFinite/not-a-constructor.js +++ b/test/built-ins/isFinite/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - isFinite does not implement [[Construct]] + isFinite does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 e794d7db62..72164de19e 100644 --- a/test/built-ins/isNaN/not-a-constructor.js +++ b/test/built-ins/isNaN/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - isNaN does not implement [[Construct]] + isNaN does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 2168e1b374..fc9ab8a738 100644 --- a/test/built-ins/parseFloat/not-a-constructor.js +++ b/test/built-ins/parseFloat/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - parseFloat does not implement [[Construct]] + parseFloat does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ 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 35d500e8e6..2d004cad54 100644 --- a/test/built-ins/parseInt/not-a-constructor.js +++ b/test/built-ins/parseInt/not-a-constructor.js @@ -4,13 +4,19 @@ /*--- esid: sec-ecmascript-standard-built-in-objects description: > - parseInt does not implement [[Construct]] + parseInt does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. + + sec-evaluatenew + + ... + 7. If IsConstructor(constructor) is false, throw a TypeError exception. + ... includes: [isConstructor.js] features: [Reflect.construct, arrow-function] ---*/ @@ -20,4 +26,4 @@ assert.sameValue(isConstructor(parseInt), false, 'isConstructor(parseInt) must r assert.throws(TypeError, () => { new parseInt(1); }, '`new parseInt(1)` throws TypeError'); - +