Throw away tests

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-07-25 10:55:29 -04:00
parent f83d422eae
commit cc70c52547
100 changed files with 0 additions and 3872 deletions

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var not initialized, computed name function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']; ['b'](){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var not initialized, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']; b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var not initialized, var not initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']; b
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-generator-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var not initialized, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']; *b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name empty var and newline, computed name empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']
['b'](){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name empty var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']
b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name empty var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']
b
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name empty var and newline, generator empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a']
*b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var not initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'];
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0
b
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name zero initialized var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0
b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0
b
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var zero initialized, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0; ['b'](){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var zero initialized, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0; b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var zero initialized, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0; b
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var zero initialized, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0; *b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-new-line-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: computed name zero initialized var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Computed name var zero initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
['a'] = 0;
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/double-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty var, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a; b;
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-string-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty string var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
'a';
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a; ['b'](){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty var, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a; b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-generator-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty var, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a; *b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-computed-name-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var and newline, computed name empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a
['b'](){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a
b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var and newline, empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a
b
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-generator-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: empty var and newline, generator empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a
*b(){}
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a;
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var not initialized, computed name function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']; ['b'](){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var not initialized, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']; b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var not initialized, var not initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']; b
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-generator-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var not initialized, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']; *b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name empty var and newline, computed name empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']
['b'](){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name empty var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']
b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name empty var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']
b
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name empty var and newline, generator empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a']
*b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var not initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'];
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0
b
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name zero initialized var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0
b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0
b
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var zero initialized, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0; ['b'](){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var zero initialized, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0; b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var zero initialized, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0; b
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var zero initialized, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0; *b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var-new-line-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: computed name zero initialized var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/computed-name-zero-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Computed name var zero initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
['a'] = 0;
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/double-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty var, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a; b;
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-string-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty string var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
'a';
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a; ['b'](){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty var, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a; b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-generator-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty var, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a; *b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-computed-name-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var and newline, computed name empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a
['b'](){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a
b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,39 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-empty-var-new-line-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var and newline, empty var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a
b
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var-new-line-generator-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: empty var and newline, generator empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a
*b(){}
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a;
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/string-zero-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: string var zero initializer (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
'a' = 0;
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/undefined-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: Empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = undefined;
constructor() {
super();
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/yield-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: yield var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
yield
constructor() {
super();
assert.sameValue(this.yield, undefined);
verifyEnumerable(this, "yield");
verifyWritable(this, "yield");
verifyConfigurable(this, "yield");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/yield-zero-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: yield var zero initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
yield = 0
constructor() {
super();
assert.sameValue(this.yield, 0);
verifyEnumerable(this, "yield");
verifyWritable(this, "yield");
verifyConfigurable(this, "yield");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
0;
constructor() {
super();
assert.sameValue(this["0"], undefined);
verifyEnumerable(this, "0");
verifyWritable(this, "0");
verifyConfigurable(this, "0");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0; ['b'](){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0; b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-empty-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0; b
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-generator-empty-function.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0; *b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,38 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0
b(){}
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,39 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0
b
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
a = 0;
constructor() {
super();
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,33 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-zero-initializer-var.case
// - src/class-fields/default/cls-decl-extends.template
/*---
description: zero initialized zero var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class Base {}
class C extends Base {
0 = 0;
constructor() {
super();
assert.sameValue(this["0"], 0);
verifyEnumerable(this, "0");
verifyWritable(this, "0");
verifyConfigurable(this, "0");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/string-zero-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: string var zero initializer (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
'a' = 0;
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/undefined-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: Empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = undefined;
constructor() {
assert.sameValue(this.a, undefined);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/yield-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: yield var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
yield
constructor() {
assert.sameValue(this.yield, undefined);
verifyEnumerable(this, "yield");
verifyWritable(this, "yield");
verifyConfigurable(this, "yield");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/yield-zero-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: yield var zero initialized (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
yield = 0
constructor() {
assert.sameValue(this.yield, 0);
verifyEnumerable(this, "yield");
verifyWritable(this, "yield");
verifyConfigurable(this, "yield");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
0;
constructor() {
assert.sameValue(this["0"], undefined);
verifyEnumerable(this, "0");
verifyWritable(this, "0");
verifyConfigurable(this, "0");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-computed-name-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var, computed name empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0; ['b'](){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var, empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0; b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-empty-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var, empty var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0; b
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,35 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-generator-empty-function.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var, generator empty function (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0; *b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var and newline (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,36 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-empty-function-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var and newline, empty function (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0
b(){}
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
verifyConfigurable(Object.getPrototypeOf(this), "b");
}
}
const c = new C();

View File

@ -1,37 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var-new-line-empty-var-asi.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var and newline, empty var (ASI) (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0
b
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
assert.sameValue(this.b, undefined);
verifyEnumerable(this, "b");
verifyWritable(this, "b");
verifyConfigurable(this, "b");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
a = 0;
constructor() {
assert.sameValue(this.a, 0);
verifyEnumerable(this, "a");
verifyWritable(this, "a");
verifyConfigurable(this, "a");
}
}
const c = new C();

View File

@ -1,31 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/class-fields/zero-zero-initializer-var.case
// - src/class-fields/default/cls-decl.template
/*---
description: zero initialized zero var (class fields)
flags: [generated]
includes: [propertyHelper.js]
info: |
1.1 New Productions
[...]
FieldDefinitionList [Yield, Await]:
FieldDefinition [?Yield, ?Await]
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
---*/
class C {
0 = 0;
constructor() {
assert.sameValue(this["0"], 0);
verifyEnumerable(this, "0");
verifyWritable(this, "0");
verifyConfigurable(this, "0");
}
}
const c = new C();

View File

@ -1,44 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-init-let.case
// - src/dstr-assignment-for-await/default/async-func-decl.template
/*---
description: Value retrieval of Initializer obeys `let` semantics. (for-await-of statement in an async function declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [let, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
---*/
let x;
let iterCount = 0;
async function fn() {
for await ([ x = y ] of [[]]) {
iterCount += 1;
}
}
let promise = fn();
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(constructor, ReferenceError);
}).then($DONE, $DONE);
let y;

View File

@ -1,43 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-put-let.case
// - src/dstr-assignment-for-await/default/async-func-decl.template
/*---
description: The assignment target should obey `let` semantics. (for-await-of statement in an async function declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [let, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
---*/
let iterCount = 0;
async function fn() {
for await ([ x ] of [[]]) {
iterCount += 1;
}
}
let promise = fn();
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, ReferenceError);
}).then($DONE, $DONE);
let x;

View File

@ -1,44 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-init-let.case
// - src/dstr-assignment-for-await/default/async-gen-decl.template
/*---
description: Value retrieval of Initializer obeys `let` semantics. (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [let, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
---*/
let x;
let iterCount = 0;
async function * fn() {
for await ([ x = y ] of [[]]) {
iterCount += 1;
}
}
let promise = fn().next();
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(constructor, ReferenceError);
}).then($DONE, $DONE);
let y;

View File

@ -1,43 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-put-let.case
// - src/dstr-assignment-for-await/default/async-gen-decl.template
/*---
description: The assignment target should obey `let` semantics. (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [let, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
---*/
let iterCount = 0;
async function * fn() {
for await ([ x ] of [[]]) {
iterCount += 1;
}
}
let promise = fn().next();
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, ReferenceError);
}).then($DONE, $DONE);
let x;

View File

@ -1,85 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-elision-iter-abpt.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: Abrupt completion returned during evaluation of elision (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
6. If Elision is present, then
a. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of Elision with
iteratorRecord as the argument.
b. If status is an abrupt completion, then
i. If iteratorRecord.[[done]] is false, return
IteratorClose(iterator, status).
ii. Return Completion(status).
---*/
let nextCount = 0;
let returnCount = 0;
let x;
let iterator = {
next() {
nextCount += 1;
if (nextCount === 2) {
throw new Test262Error();
}
// Set an upper-bound to limit unnecessary iteration in non-conformant
// implementations
return { done: nextCount > 10 };
},
return() {
returnCount += 1;
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ x , , ] of [iterable]) {
iterCount += 1;
}
}
let iter = fn();
iter.next().then(() => {
iter.next().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(nextCount, 2);
assert.sameValue(returnCount, 0);
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);
}, $DONE);

View File

@ -1,55 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-get-err.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: Abrupt completion returned from GetIterator (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
1. Let iterator be GetIterator(value).
2. ReturnIfAbrupt(iterator).
---*/
let iterable = {
[Symbol.iterator]() {
throw new Test262Error();
}
};
let x;
let iterCount = 0;
async function * fn() {
for await ([ x , ] of [iterable
]) {
iterCount += 1;
}
}
let iter = fn();
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);

View File

@ -1,83 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-list-nrml-close-null.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose throws a TypeError when `return` returns a non-Object value (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
3. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
iteratorRecord as the argument.
4. If status is an abrupt completion, then
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
b. Return Completion(status).
7.4.6 IteratorClose( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
8. If Type(innerResult.[[value]]) is not Object, throw a TypeError
exception.
---*/
let x;
let nextCount = 0;
let iterator = {
next() {
nextCount += 1;
// Set an upper-bound to limit unnecessary iteration in non-conformant
// implementations
return { done: nextCount > 10 };
},
return() {
return null;
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ x , ] of [iterable]) {
iterCount += 1;
}
}
let iter = fn();
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, TypeError);
}).then($DONE, $DONE);

View File

@ -1,77 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-list-rtrn-close-err.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose is invoked when evaluation of AssignmentElementList returns a "return" completion and the iterator has not been marked as "done" (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, generators, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
3. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
iteratorRecord as the argument.
4. If status is an abrupt completion, then
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
b. Return Completion(status).
7.4.6 IteratorClose( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
---*/
let returnCount = 0;
let unreachable = 0;
let iterator = {
return() {
returnCount += 1;
throw new Test262Error();
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ {}[yield] , ] of [iterable]) {
unreachable += 1;
iterCount += 1;
}
}
let iter = fn();
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(returnCount, 1);
assert.sameValue(unreachable, 0, 'Unreachable statement was not executed');
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);

View File

@ -1,75 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-list-rtrn-close-null.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose throws a TypeError when `return` returns a non-Object value (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, generators, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
3. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
iteratorRecord as the argument.
4. If status is an abrupt completion, then
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
b. Return Completion(status).
7.4.6 IteratorClose( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
8. If Type(innerResult.[[value]]) is not Object, throw a TypeError
exception.
---*/
let iterator = {
return() {
return null;
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ {}[yield] , ] of [iterable]) {
iterCount += 1;
}
}
let iter = fn();
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(iterCount, 0);
assert.sameValue(constructor, TypeError);
}).then($DONE, $DONE);

View File

@ -1,85 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-list-rtrn-close.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose is invoked when evaluation of AssignmentElementList returns a "return" completion and the iterator has not been marked as "done" (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, generators, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
3. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
iteratorRecord as the argument.
4. If status is an abrupt completion, then
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
b. Return Completion(status).
7.4.6 IteratorClose( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
---*/
let returnCount = 0;
let unreachable = 0;
let thisValue = null;
let args = null;
let iterator = {
return() {
returnCount += 1;
thisValue = this;
args = arguments;
return {};
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ {}[yield] , ] of [iterable]) {
unreachable += 1;
iterCount += 1;
}
}
let iter = fn();
iter.return(888).then(result => {
assert.sameValue(returnCount, 1);
assert.sameValue(unreachable, 0, 'Unreachable statement was not executed');
assert.sameValue(result.value, 888);
assert(result.done, 'Iterator correctly closed');
assert.sameValue(thisValue, iterator, 'correct `this` value');
assert(!!args, 'arguments object provided');
assert.sameValue(args.length, 0, 'zero arguments specified');
}).then($DONE, $DONE);

View File

@ -1,86 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-rest-rtrn-close-err.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose is called when AssignmentRestEvaluation produces a "return" completion due to reference evaluation (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, generators, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
6. If AssignmentRestElement is present, then
a. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentRestElement
with iteratorRecord as the argument.
7. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
8. Return Completion(status).
7.4.6 IteratorClose ( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
---*/
let nextCount = 0;
let returnCount = 0;
let unreachable = 0;
let x;
let iterator = {
next() {
nextCount += 1;
// Set an upper-bound to limit unnecessary iteration in non-conformant
// implementations
return { done: nextCount > 10 };
},
return() {
returnCount += 1;
throw new Test262Error();
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ x , ...{}[yield] ] of [iterable]) {
unreachable += 1;
iterCount += 1;
}
}
let iter = fn();
iter.next().then(() => {
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(nextCount, 1);
assert.sameValue(returnCount, 1);
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);
}).then($DONE, $DONE);

View File

@ -1,80 +0,0 @@
// This file was procedurally generated from the following sources:
// - src/dstr-assignment-for-await/array-elem-trlg-iter-rest-rtrn-close-null.case
// - src/dstr-assignment-for-await/async-generator/async-gen-decl.template
/*---
description: IteratorClose throws a TypeError when `return` returns a non-Object value (for-await-of statement in an async generator declaration)
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
features: [Symbol.iterator, generators, destructuring-binding, async-iteration]
flags: [generated, async]
info: |
IterationStatement :
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
AssignmentExpression, iterate).
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
keyResult, assignment, labelSet).
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
[...]
5. If destructuring is true and if lhsKind is assignment, then
a. Assert: lhs is a LeftHandSideExpression.
b. Let assignmentPattern be the parse of the source text corresponding to
lhs using AssignmentPattern as the goal symbol.
[...]
ArrayAssignmentPattern :
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
[...]
6. If AssignmentRestElement is present, then
a. Let status be the result of performing
IteratorDestructuringAssignmentEvaluation of AssignmentRestElement
with iteratorRecord as the argument.
7. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
8. Return Completion(status).
7.4.6 IteratorClose ( iterator, completion )
[...]
5. Let innerResult be Call(return, iterator, « »).
6. If completion.[[type]] is throw, return Completion(completion).
7. If innerResult.[[type]] is throw, return Completion(innerResult).
---*/
let nextCount = 0;
let x;
let iterator = {
next() {
nextCount += 1;
// Set an upper-bound to limit unnecessary iteration in non-conformant
// implementations
return { done: nextCount > 10 };
},
return() {
return null;
}
};
let iterable = {
[Symbol.iterator]() {
return iterator;
}
};
let iterCount = 0;
async function * fn() {
for await ([ x , ...{}[yield] ] of [iterable]) {
iterCount += 1;
}
}
let iter = fn();
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
assert.sameValue(nextCount, 1);
assert.sameValue(constructor, Test262Error);
}).then($DONE, $DONE);