Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests.

This commit is contained in:
Rick Waldron 2020-10-05 14:36:06 -04:00
parent 8aacff591c
commit d576baf73f
361 changed files with 2863 additions and 716 deletions

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.getYear does not implement [[Construct]] Date.prototype.getYear does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.getYear(); let date = new Date(Date.now()); new date.getYear();
}, '`let date = new Date(Date.now()); new date.getYear()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.getYear()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.setYear does not implement [[Construct]] Date.prototype.setYear does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.setYear(); let date = new Date(Date.now()); new date.setYear();
}, '`let date = new Date(Date.now()); new date.setYear()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.setYear()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.toGMTString does not implement [[Construct]] Date.prototype.toGMTString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.toGMTString(); let date = new Date(Date.now()); new date.toGMTString();
}, '`let date = new Date(Date.now()); new date.toGMTString()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.toGMTString()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.anchor does not implement [[Construct]] String.prototype.anchor does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.anchor(); new String.prototype.anchor();
}, '`new String.prototype.anchor()` throws TypeError'); }, '`new String.prototype.anchor()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.big does not implement [[Construct]] String.prototype.big does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +25,4 @@ assert.sameValue(isConstructor(String.prototype.big), false, 'isConstructor(Stri
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.big(); new String.prototype.big();
}, '`new String.prototype.big()` throws TypeError'); }, '`new String.prototype.big()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.blink does not implement [[Construct]] String.prototype.blink does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.blink(); new String.prototype.blink();
}, '`new String.prototype.blink()` throws TypeError'); }, '`new String.prototype.blink()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.bold does not implement [[Construct]] String.prototype.bold does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.bold(); new String.prototype.bold();
}, '`new String.prototype.bold()` throws TypeError'); }, '`new String.prototype.bold()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.fixed does not implement [[Construct]] String.prototype.fixed does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.fixed(); new String.prototype.fixed();
}, '`new String.prototype.fixed()` throws TypeError'); }, '`new String.prototype.fixed()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.fontcolor does not implement [[Construct]] String.prototype.fontcolor does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.fontcolor(); new String.prototype.fontcolor();
}, '`new String.prototype.fontcolor()` throws TypeError'); }, '`new String.prototype.fontcolor()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.fontsize does not implement [[Construct]] String.prototype.fontsize does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.fontsize(); new String.prototype.fontsize();
}, '`new String.prototype.fontsize()` throws TypeError'); }, '`new String.prototype.fontsize()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.italics does not implement [[Construct]] String.prototype.italics does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.italics(); new String.prototype.italics();
}, '`new String.prototype.italics()` throws TypeError'); }, '`new String.prototype.italics()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.link does not implement [[Construct]] String.prototype.link does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.link(); new String.prototype.link();
}, '`new String.prototype.link()` throws TypeError'); }, '`new String.prototype.link()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.small does not implement [[Construct]] String.prototype.small does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.small(); new String.prototype.small();
}, '`new String.prototype.small()` throws TypeError'); }, '`new String.prototype.small()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.strike does not implement [[Construct]] String.prototype.strike does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.strike(); new String.prototype.strike();
}, '`new String.prototype.strike()` throws TypeError'); }, '`new String.prototype.strike()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.sub does not implement [[Construct]] String.prototype.sub does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +25,4 @@ assert.sameValue(isConstructor(String.prototype.sub), false, 'isConstructor(Stri
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.sub(); new String.prototype.sub();
}, '`new String.prototype.sub()` throws TypeError'); }, '`new String.prototype.sub()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.substr does not implement [[Construct]] String.prototype.substr does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +29,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.substr(); new String.prototype.substr();
}, '`new String.prototype.substr()` throws TypeError'); }, '`new String.prototype.substr()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
String.prototype.sup does not implement [[Construct]] String.prototype.sup does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +25,4 @@ assert.sameValue(isConstructor(String.prototype.sup), false, 'isConstructor(Stri
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new String.prototype.sup(); new String.prototype.sup();
}, '`new String.prototype.sup()` throws TypeError'); }, '`new String.prototype.sup()` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
escape does not implement [[Construct]] escape does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +25,4 @@ assert.sameValue(isConstructor(escape), false, 'isConstructor(escape) must retur
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new escape(''); new escape('');
}, '`new escape(\'\')` throws TypeError'); }, '`new escape(\'\')` throws TypeError');

View File

@ -4,13 +4,18 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
unescape does not implement [[Construct]] unescape does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +25,4 @@ assert.sameValue(isConstructor(unescape), false, 'isConstructor(unescape) must r
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new unescape(''); new unescape('');
}, '`new unescape(\'\')` throws TypeError'); }, '`new unescape(\'\')` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.from does not implement [[Construct]] Array.from does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.from), false, 'isConstructor(Array.from) mu
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.from([]); new Array.from([]);
}, '`new Array.from([])` throws TypeError'); }, '`new Array.from([])` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.isArray does not implement [[Construct]] Array.isArray does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.isArray), false, 'isConstructor(Array.isArr
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.isArray([]); new Array.isArray([]);
}, '`new Array.isArray([])` throws TypeError'); }, '`new Array.isArray([])` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.of does not implement [[Construct]] Array.of does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.of), false, 'isConstructor(Array.of) must r
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.of(1); new Array.of(1);
}, '`new Array.of(1)` throws TypeError'); }, '`new Array.of(1)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype[Symbol.iterator] does not implement [[Construct]] Array.prototype[Symbol.iterator] does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Symbol, Symbol.iterator, arrow-function] features: [Reflect.construct, Symbol, Symbol.iterator, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype[Symbol.iterator](); new Array.prototype[Symbol.iterator]();
}, '`new Array.prototype[Symbol.iterator]()` throws TypeError'); }, '`new Array.prototype[Symbol.iterator]()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.concat does not implement [[Construct]] Array.prototype.concat does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.concat([]); new Array.prototype.concat([]);
}, '`new Array.prototype.concat([])` throws TypeError'); }, '`new Array.prototype.concat([])` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.copyWithin does not implement [[Construct]] Array.prototype.copyWithin does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.copyWithin(); new Array.prototype.copyWithin();
}, '`new Array.prototype.copyWithin()` throws TypeError'); }, '`new Array.prototype.copyWithin()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.entries does not implement [[Construct]] Array.prototype.entries does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.entries(); new Array.prototype.entries();
}, '`new Array.prototype.entries()` throws TypeError'); }, '`new Array.prototype.entries()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.every does not implement [[Construct]] Array.prototype.every does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.every(() => {}); new Array.prototype.every(() => {});
}, '`new Array.prototype.every(() => {})` throws TypeError'); }, '`new Array.prototype.every(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.fill does not implement [[Construct]] Array.prototype.fill does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.fill), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.fill(); new Array.prototype.fill();
}, '`new Array.prototype.fill()` throws TypeError'); }, '`new Array.prototype.fill()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.filter does not implement [[Construct]] Array.prototype.filter does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.filter(() => {}); new Array.prototype.filter(() => {});
}, '`new Array.prototype.filter(() => {})` throws TypeError'); }, '`new Array.prototype.filter(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.find does not implement [[Construct]] Array.prototype.find does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.find), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.find(() => {}); new Array.prototype.find(() => {});
}, '`new Array.prototype.find(() => {})` throws TypeError'); }, '`new Array.prototype.find(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.findIndex does not implement [[Construct]] Array.prototype.findIndex does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.findIndex(() => {}); new Array.prototype.findIndex(() => {});
}, '`new Array.prototype.findIndex(() => {})` throws TypeError'); }, '`new Array.prototype.findIndex(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.flat does not implement [[Construct]] Array.prototype.flat does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.flat), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.flat(); new Array.prototype.flat();
}, '`new Array.prototype.flat()` throws TypeError'); }, '`new Array.prototype.flat()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.flatMap does not implement [[Construct]] Array.prototype.flatMap does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Array.prototype.flatMap, arrow-function] features: [Reflect.construct, Array.prototype.flatMap, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.flatMap(() => {}); new Array.prototype.flatMap(() => {});
}, '`new Array.prototype.flatMap(() => {})` throws TypeError'); }, '`new Array.prototype.flatMap(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.forEach does not implement [[Construct]] Array.prototype.forEach does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.forEach(() => {}); new Array.prototype.forEach(() => {});
}, '`new Array.prototype.forEach(() => {})` throws TypeError'); }, '`new Array.prototype.forEach(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.includes does not implement [[Construct]] Array.prototype.includes does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.includes(1); new Array.prototype.includes(1);
}, '`new Array.prototype.includes(1)` throws TypeError'); }, '`new Array.prototype.includes(1)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.indexOf does not implement [[Construct]] Array.prototype.indexOf does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.indexOf(); new Array.prototype.indexOf();
}, '`new Array.prototype.indexOf()` throws TypeError'); }, '`new Array.prototype.indexOf()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.join does not implement [[Construct]] Array.prototype.join does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.join), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.join(); new Array.prototype.join();
}, '`new Array.prototype.join()` throws TypeError'); }, '`new Array.prototype.join()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.keys does not implement [[Construct]] Array.prototype.keys does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.keys), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.keys(); new Array.prototype.keys();
}, '`new Array.prototype.keys()` throws TypeError'); }, '`new Array.prototype.keys()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.lastIndexOf does not implement [[Construct]] Array.prototype.lastIndexOf does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.lastIndexOf(); new Array.prototype.lastIndexOf();
}, '`new Array.prototype.lastIndexOf()` throws TypeError'); }, '`new Array.prototype.lastIndexOf()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.map does not implement [[Construct]] Array.prototype.map does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.map), false, 'isConstructor(Array
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.map(() => {}); new Array.prototype.map(() => {});
}, '`new Array.prototype.map(() => {})` throws TypeError'); }, '`new Array.prototype.map(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.pop does not implement [[Construct]] Array.prototype.pop does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.pop), false, 'isConstructor(Array
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.pop(); new Array.prototype.pop();
}, '`new Array.prototype.pop()` throws TypeError'); }, '`new Array.prototype.pop()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.push does not implement [[Construct]] Array.prototype.push does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.push), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.push(); new Array.prototype.push();
}, '`new Array.prototype.push()` throws TypeError'); }, '`new Array.prototype.push()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.reduce does not implement [[Construct]] Array.prototype.reduce does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.reduce(() => {}, []); new Array.prototype.reduce(() => {}, []);
}, '`new Array.prototype.reduce(() => {}, [])` throws TypeError'); }, '`new Array.prototype.reduce(() => {}, [])` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.reduceRight does not implement [[Construct]] Array.prototype.reduceRight does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.reduceRight(() => {}, []); new Array.prototype.reduceRight(() => {}, []);
}, '`new Array.prototype.reduceRight(() => {}, [])` throws TypeError'); }, '`new Array.prototype.reduceRight(() => {}, [])` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.reverse does not implement [[Construct]] Array.prototype.reverse does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.reverse(); new Array.prototype.reverse();
}, '`new Array.prototype.reverse()` throws TypeError'); }, '`new Array.prototype.reverse()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.shift does not implement [[Construct]] Array.prototype.shift does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.shift(); new Array.prototype.shift();
}, '`new Array.prototype.shift()` throws TypeError'); }, '`new Array.prototype.shift()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.slice does not implement [[Construct]] Array.prototype.slice does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.slice(); new Array.prototype.slice();
}, '`new Array.prototype.slice()` throws TypeError'); }, '`new Array.prototype.slice()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.some does not implement [[Construct]] Array.prototype.some does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.some), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.some(() => {}); new Array.prototype.some(() => {});
}, '`new Array.prototype.some(() => {})` throws TypeError'); }, '`new Array.prototype.some(() => {})` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.sort does not implement [[Construct]] Array.prototype.sort does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Array.prototype.sort), false, 'isConstructor(Arra
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.sort(); new Array.prototype.sort();
}, '`new Array.prototype.sort()` throws TypeError'); }, '`new Array.prototype.sort()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.splice does not implement [[Construct]] Array.prototype.splice does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.splice(); new Array.prototype.splice();
}, '`new Array.prototype.splice()` throws TypeError'); }, '`new Array.prototype.splice()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.toLocaleString does not implement [[Construct]] Array.prototype.toLocaleString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.toLocaleString(); new Array.prototype.toLocaleString();
}, '`new Array.prototype.toLocaleString()` throws TypeError'); }, '`new Array.prototype.toLocaleString()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.toString does not implement [[Construct]] Array.prototype.toString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.toString(); new Array.prototype.toString();
}, '`new Array.prototype.toString()` throws TypeError'); }, '`new Array.prototype.toString()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.unshift does not implement [[Construct]] Array.prototype.unshift does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.unshift(); new Array.prototype.unshift();
}, '`new Array.prototype.unshift()` throws TypeError'); }, '`new Array.prototype.unshift()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Array.prototype.values does not implement [[Construct]] Array.prototype.values does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Array.prototype.values, arrow-function] features: [Reflect.construct, Array.prototype.values, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Array.prototype.values(); new Array.prototype.values();
}, '`new Array.prototype.values()` throws TypeError'); }, '`new Array.prototype.values()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
ArrayBuffer.isView does not implement [[Construct]] ArrayBuffer.isView does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, ArrayBuffer, arrow-function] features: [Reflect.construct, ArrayBuffer, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(ArrayBuffer.isView), false, 'isConstructor(ArrayB
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new ArrayBuffer.isView(); new ArrayBuffer.isView();
}, '`new ArrayBuffer.isView()` throws TypeError'); }, '`new ArrayBuffer.isView()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
ArrayBuffer.prototype.slice does not implement [[Construct]] ArrayBuffer.prototype.slice does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, ArrayBuffer, arrow-function] features: [Reflect.construct, ArrayBuffer, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let ab = new ArrayBuffer(); new ab.slice(); let ab = new ArrayBuffer(); new ab.slice();
}, '`let ab = new ArrayBuffer(); new ab.slice()` throws TypeError'); }, '`let ab = new ArrayBuffer(); new ab.slice()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.add does not implement [[Construct]] Atomics.add does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.add), false, 'isConstructor(Atomics.add)
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.add(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.add(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.and does not implement [[Construct]] Atomics.and does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.and), false, 'isConstructor(Atomics.and)
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.and(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.and(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.compareExchange does not implement [[Construct]] Atomics.compareExchange does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.compareExchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.exchange does not implement [[Construct]] Atomics.exchange does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.exchange), false, 'isConstructor(Atomics.
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.exchange(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.isLockFree does not implement [[Construct]] Atomics.isLockFree does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.isLockFree), false, 'isConstructor(Atomic
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.isLockFree(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.isLockFree(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.load does not implement [[Construct]] Atomics.load does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.load), false, 'isConstructor(Atomics.load
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.load(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.load(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.notify does not implement [[Construct]] Atomics.notify does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.notify), false, 'isConstructor(Atomics.no
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.notify(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.notify(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.or does not implement [[Construct]] Atomics.or does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] 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, () => { 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)));
}, '`new Atomics.or(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.or(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.store does not implement [[Construct]] Atomics.store does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.store), false, 'isConstructor(Atomics.sto
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.store(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.store(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.sub does not implement [[Construct]] Atomics.sub does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.sub), false, 'isConstructor(Atomics.sub)
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.sub(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.sub(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Atomics.xor does not implement [[Construct]] Atomics.xor does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer] features: [Reflect.construct, Atomics, arrow-function, TypedArray, SharedArrayBuffer]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Atomics.xor), false, 'isConstructor(Atomics.xor)
assert.throws(TypeError, () => { 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)));
}, '`new Atomics.xor(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError'); }, '`new Atomics.xor(new Int32Array(new SharedArrayBuffer(Int32Array.BYTES_PER_ELEMENT)))` throws TypeError');

View File

@ -3,13 +3,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
BigInt.asIntN does not implement [[Construct]] BigInt.asIntN does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, arrow-function] features: [Reflect.construct, BigInt, arrow-function]
---*/ ---*/

View File

@ -3,13 +3,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
BigInt.asUintN does not implement [[Construct]] BigInt.asUintN does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, arrow-function] features: [Reflect.construct, BigInt, arrow-function]
---*/ ---*/

View File

@ -3,13 +3,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
BigInt.prototype.toLocaleString does not implement [[Construct]] BigInt.prototype.toLocaleString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, arrow-function] features: [Reflect.construct, BigInt, arrow-function]
---*/ ---*/

View File

@ -3,13 +3,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
BigInt.prototype.toString does not implement [[Construct]] BigInt.prototype.toString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, arrow-function] features: [Reflect.construct, BigInt, arrow-function]
---*/ ---*/

View File

@ -3,13 +3,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
BigInt.prototype.valueOf does not implement [[Construct]] BigInt.prototype.valueOf does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, arrow-function] features: [Reflect.construct, BigInt, arrow-function]
---*/ ---*/

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Boolean.prototype.toString does not implement [[Construct]] Boolean.prototype.toString does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Boolean.prototype.toString(); new Boolean.prototype.toString();
}, '`new Boolean.prototype.toString()` throws TypeError'); }, '`new Boolean.prototype.toString()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Boolean.prototype.valueOf does not implement [[Construct]] Boolean.prototype.valueOf does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Boolean.prototype.valueOf(); new Boolean.prototype.valueOf();
}, '`new Boolean.prototype.valueOf()` throws TypeError'); }, '`new Boolean.prototype.valueOf()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getBigInt64 does not implement [[Construct]] DataView.prototype.getBigInt64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigInt64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigInt64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getBigUint64 does not implement [[Construct]] DataView.prototype.getBigUint64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigUint64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getBigUint64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getFloat32 does not implement [[Construct]] DataView.prototype.getFloat32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getFloat64 does not implement [[Construct]] DataView.prototype.getFloat64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getInt16 does not implement [[Construct]] DataView.prototype.getInt16 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt16(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt16(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getInt32 does not implement [[Construct]] DataView.prototype.getInt32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getInt8 does not implement [[Construct]] DataView.prototype.getInt8 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt8(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getInt8(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getUint16 does not implement [[Construct]] DataView.prototype.getUint16 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint16(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint16(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getUint32 does not implement [[Construct]] DataView.prototype.getUint32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.getUint8 does not implement [[Construct]] DataView.prototype.getUint8 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint8(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getUint8(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setBigInt64 does not implement [[Construct]] DataView.prototype.setBigInt64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, BigInt, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigInt64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigInt64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setBigUint64 does not implement [[Construct]] DataView.prototype.setBigUint64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigUint64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setBigUint64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setFloat32 does not implement [[Construct]] DataView.prototype.setFloat32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setFloat64 does not implement [[Construct]] DataView.prototype.setFloat64 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat64(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat64(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setInt16 does not implement [[Construct]] DataView.prototype.setInt16 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt16(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt16(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setInt32 does not implement [[Construct]] DataView.prototype.setInt32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setInt8 does not implement [[Construct]] DataView.prototype.setInt8 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt8(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt8(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setUint16 does not implement [[Construct]] DataView.prototype.setUint16 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint16(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint16(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setUint32 does not implement [[Construct]] DataView.prototype.setUint32 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint32(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint32(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
DataView.prototype.setUint8 does not implement [[Construct]] DataView.prototype.setUint8 does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, DataView, arrow-function, ArrayBuffer] features: [Reflect.construct, DataView, arrow-function, ArrayBuffer]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { 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);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint8(0, 0)` throws TypeError'); }, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setUint8(0, 0)` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.UTC does not implement [[Construct]] Date.UTC does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Date.UTC), false, 'isConstructor(Date.UTC) must r
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Date.UTC(); new Date.UTC();
}, '`new Date.UTC()` throws TypeError'); }, '`new Date.UTC()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.now does not implement [[Construct]] Date.now does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Date.now), false, 'isConstructor(Date.now) must r
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Date.now(); new Date.now();
}, '`new Date.now()` throws TypeError'); }, '`new Date.now()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.parse does not implement [[Construct]] Date.parse does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -20,4 +26,4 @@ assert.sameValue(isConstructor(Date.parse), false, 'isConstructor(Date.parse) mu
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
new Date.parse(); new Date.parse();
}, '`new Date.parse()` throws TypeError'); }, '`new Date.parse()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.getDate does not implement [[Construct]] Date.prototype.getDate does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.getDate(); let date = new Date(Date.now()); new date.getDate();
}, '`let date = new Date(Date.now()); new date.getDate()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.getDate()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.getDay does not implement [[Construct]] Date.prototype.getDay does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.getDay(); let date = new Date(Date.now()); new date.getDay();
}, '`let date = new Date(Date.now()); new date.getDay()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.getDay()` throws TypeError');

View File

@ -4,13 +4,19 @@
/*--- /*---
esid: sec-ecmascript-standard-built-in-objects esid: sec-ecmascript-standard-built-in-objects
description: > description: >
Date.prototype.getFullYear does not implement [[Construct]] Date.prototype.getFullYear does not implement [[Construct]], is not new-able
info: | info: |
ECMAScript Function Objects ECMAScript Function Objects
Built-in function objects that are not identified as constructors do not Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function. the description of a particular function.
sec-evaluatenew
...
7. If IsConstructor(constructor) is false, throw a TypeError exception.
...
includes: [isConstructor.js] includes: [isConstructor.js]
features: [Reflect.construct, arrow-function] features: [Reflect.construct, arrow-function]
---*/ ---*/
@ -24,4 +30,4 @@ assert.sameValue(
assert.throws(TypeError, () => { assert.throws(TypeError, () => {
let date = new Date(Date.now()); new date.getFullYear(); let date = new Date(Date.now()); new date.getFullYear();
}, '`let date = new Date(Date.now()); new date.getFullYear()` throws TypeError'); }, '`let date = new Date(Date.now()); new date.getFullYear()` throws TypeError');

Some files were not shown because too many files have changed in this diff Show More