Generate tests

See e731114cff

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
This commit is contained in:
Rick Waldron 2017-07-13 14:48:48 -04:00
parent e731114cff
commit 5326cc5ded
88 changed files with 3072 additions and 0 deletions

View File

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,39 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,38 @@
// 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

@ -0,0 +1,39 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,33 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,35 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,36 @@
// 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

@ -0,0 +1,37 @@
// 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

@ -0,0 +1,31 @@
// 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

@ -0,0 +1,31 @@
// 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();