diff options
author | Daniel Ehrenberg <littledan@chromium.org> | 2017-07-13 20:54:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 20:54:36 +0200 |
commit | 3b0838917ca4460f0b0ba1b5bbc8e43fec453aee (patch) | |
tree | 31deb8cc150485dd95c801d508935beecd868c2b /src | |
parent | 4213586ebd2ce7e9a73851bf6a5d3592928e9983 (diff) | |
download | qtdeclarative-testsuites-3b0838917ca4460f0b0ba1b5bbc8e43fec453aee.tar.gz |
Revert "Add initial set of class field tests (from V8's test-parsing.cc)"
This reverts commit e731114cff0a59936c5117f42d2d618c19920fb6.
Diffstat (limited to 'src')
46 files changed, 0 insertions, 1262 deletions
diff --git a/src/class-fields/computed-name-empty-var-computed-name-empty-function.case b/src/class-fields/computed-name-empty-var-computed-name-empty-function.case deleted file mode 100644 index a6aed9f89..000000000 --- a/src/class-fields/computed-name-empty-var-computed-name-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var not initialized, computed name function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a']; ['b'](){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-empty-function.case b/src/class-fields/computed-name-empty-var-empty-function.case deleted file mode 100644 index 5feacdca3..000000000 --- a/src/class-fields/computed-name-empty-var-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var not initialized, empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a']; b(){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-empty-var.case b/src/class-fields/computed-name-empty-var-empty-var.case deleted file mode 100644 index af98e9c96..000000000 --- a/src/class-fields/computed-name-empty-var-empty-var.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var not initialized, var not initialized -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a']; b - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-generator-empty-function.case b/src/class-fields/computed-name-empty-var-generator-empty-function.case deleted file mode 100644 index 39a1de7de..000000000 --- a/src/class-fields/computed-name-empty-var-generator-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var not initialized, generator empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a']; *b(){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-new-line-asi.case b/src/class-fields/computed-name-empty-var-new-line-asi.case deleted file mode 100644 index 84e9e7d06..000000000 --- a/src/class-fields/computed-name-empty-var-new-line-asi.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name empty var and newline (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case b/src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case deleted file mode 100644 index 93d034fad..000000000 --- a/src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name empty var and newline, computed name empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] - ['b'](){} -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case b/src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case deleted file mode 100644 index d908715a1..000000000 --- a/src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name empty var and newline, empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] - b(){} -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case b/src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case deleted file mode 100644 index 139ac66ee..000000000 --- a/src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name empty var and newline, empty var (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] - b -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case b/src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case deleted file mode 100644 index f5cbdbc62..000000000 --- a/src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name empty var and newline, generator empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] - *b(){} -//- assertions - 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"); diff --git a/src/class-fields/computed-name-empty-var.case b/src/class-fields/computed-name-empty-var.case deleted file mode 100644 index 5a2c3b0e4..000000000 --- a/src/class-fields/computed-name-empty-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var not initialized -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a']; - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case b/src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case deleted file mode 100644 index 76cfe5ab4..000000000 --- a/src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name zero initialized var and newline, empty var (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0 - b -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case b/src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case deleted file mode 100644 index ea66279a7..000000000 --- a/src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name zero initialized var and newline, empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0 - b(){} -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case b/src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case deleted file mode 100644 index 76cfe5ab4..000000000 --- a/src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name zero initialized var and newline, empty var (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0 - b -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case b/src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case deleted file mode 100644 index 58a136c03..000000000 --- a/src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var zero initialized, computed name empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0; ['b'](){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-var-empty-function.case b/src/class-fields/computed-name-zero-initializer-var-empty-function.case deleted file mode 100644 index 9b11074b7..000000000 --- a/src/class-fields/computed-name-zero-initializer-var-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var zero initialized, empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0; b(){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-var-empty-var.case b/src/class-fields/computed-name-zero-initializer-var-empty-var.case deleted file mode 100644 index 5653b8d5b..000000000 --- a/src/class-fields/computed-name-zero-initializer-var-empty-var.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var zero initialized, empty var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0; b - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case b/src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case deleted file mode 100644 index c4ac67230..000000000 --- a/src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var zero initialized, generator empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0; *b(){} - -//- assertions - 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"); diff --git a/src/class-fields/computed-name-zero-initializer-var-new-line-asi.case b/src/class-fields/computed-name-zero-initializer-var-new-line-asi.case deleted file mode 100644 index 8fe58c0be..000000000 --- a/src/class-fields/computed-name-zero-initializer-var-new-line-asi.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: computed name zero initialized var and newline (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0 - -//- assertions - assert.sameValue(this.a, 0); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/computed-name-zero-initializer-var.case b/src/class-fields/computed-name-zero-initializer-var.case deleted file mode 100644 index c2dc168eb..000000000 --- a/src/class-fields/computed-name-zero-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Computed name var zero initialized -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - ['a'] = 0; - -//- assertions - assert.sameValue(this.a, 0); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/default/cls-decl-extends.template b/src/class-fields/default/cls-decl-extends.template deleted file mode 100644 index 2cc6dd63f..000000000 --- a/src/class-fields/default/cls-decl-extends.template +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -path: language/expressions/class/class-field-extends- -name: class fields ----*/ - -class Base {} -class C extends Base { - /*{ body }*/ - constructor() { - super(); - /*{ assertions }*/ - } -} - -const c = new C(); diff --git a/src/class-fields/default/cls-decl.template b/src/class-fields/default/cls-decl.template deleted file mode 100644 index 92dcfd74e..000000000 --- a/src/class-fields/default/cls-decl.template +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -path: language/expressions/class/class-field- -name: class fields ----*/ - -class C { - /*{ body }*/ - constructor() { - /*{ assertions }*/ - } -} - -const c = new C(); diff --git a/src/class-fields/double-empty-var.case b/src/class-fields/double-empty-var.case deleted file mode 100644 index 6da771449..000000000 --- a/src/class-fields/double-empty-var.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty var, empty var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a; b; - -//- assertions - 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"); diff --git a/src/class-fields/empty-string-var.case b/src/class-fields/empty-string-var.case deleted file mode 100644 index 86666052f..000000000 --- a/src/class-fields/empty-string-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty string var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - 'a'; - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/empty-var-computed-name-empty-function.case b/src/class-fields/empty-var-computed-name-empty-function.case deleted file mode 100644 index 3a56f2179..000000000 --- a/src/class-fields/empty-var-computed-name-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var, computed name empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a; ['b'](){} - -//- assertions - 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"); diff --git a/src/class-fields/empty-var-empty-function.case b/src/class-fields/empty-var-empty-function.case deleted file mode 100644 index 43b39b27c..000000000 --- a/src/class-fields/empty-var-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty var, empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a; b(){} - -//- assertions - 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"); diff --git a/src/class-fields/empty-var-generator-empty-function.case b/src/class-fields/empty-var-generator-empty-function.case deleted file mode 100644 index a9f86fa45..000000000 --- a/src/class-fields/empty-var-generator-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty var, generator empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a; *b(){} - -//- assertions - 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"); diff --git a/src/class-fields/empty-var-new-line-asi.case b/src/class-fields/empty-var-new-line-asi.case deleted file mode 100644 index 0c68ce995..000000000 --- a/src/class-fields/empty-var-new-line-asi.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var and newline (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/empty-var-new-line-computed-name-function-asi.case b/src/class-fields/empty-var-new-line-computed-name-function-asi.case deleted file mode 100644 index fe9551455..000000000 --- a/src/class-fields/empty-var-new-line-computed-name-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var and newline, computed name empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a - ['b'](){} -//- assertions - 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"); diff --git a/src/class-fields/empty-var-new-line-empty-function-asi.case b/src/class-fields/empty-var-new-line-empty-function-asi.case deleted file mode 100644 index 7002cab0c..000000000 --- a/src/class-fields/empty-var-new-line-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var and newline, empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a - b(){} -//- assertions - 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"); diff --git a/src/class-fields/empty-var-new-line-empty-var-new-line-asi.case b/src/class-fields/empty-var-new-line-empty-var-new-line-asi.case deleted file mode 100644 index c58ef2756..000000000 --- a/src/class-fields/empty-var-new-line-empty-var-new-line-asi.case +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var and newline, empty var and newline (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a - b - -//- assertions - 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"); diff --git a/src/class-fields/empty-var-new-line-generator-empty-function-asi.case b/src/class-fields/empty-var-new-line-generator-empty-function-asi.case deleted file mode 100644 index 816bb591b..000000000 --- a/src/class-fields/empty-var-new-line-generator-empty-function-asi.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: empty var and newline, generator empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a - *b(){} -//- assertions - 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"); diff --git a/src/class-fields/empty-var.case b/src/class-fields/empty-var.case deleted file mode 100644 index 43392b65b..000000000 --- a/src/class-fields/empty-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a; - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/string-zero-initializer-var.case b/src/class-fields/string-zero-initializer-var.case deleted file mode 100644 index a6ab7c7f8..000000000 --- a/src/class-fields/string-zero-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: string var zero initializer -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - 'a' = 0; - -//- assertions - assert.sameValue(this.a, 0); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/undefined-initializer-var.case b/src/class-fields/undefined-initializer-var.case deleted file mode 100644 index 391bdb3ee..000000000 --- a/src/class-fields/undefined-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: Empty var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = undefined; - -//- assertions - assert.sameValue(this.a, undefined); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/yield-var.case b/src/class-fields/yield-var.case deleted file mode 100644 index abc30f2fe..000000000 --- a/src/class-fields/yield-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: yield var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - yield - -//- assertions - assert.sameValue(this.yield, undefined); - verifyEnumerable(this, "yield"); - verifyWritable(this, "yield"); - verifyConfigurable(this, "yield"); diff --git a/src/class-fields/yield-zero-initializer-var.case b/src/class-fields/yield-zero-initializer-var.case deleted file mode 100644 index e677466bf..000000000 --- a/src/class-fields/yield-zero-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: yield var zero initialized -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - yield = 0 - -//- assertions - assert.sameValue(this.yield, 0); - verifyEnumerable(this, "yield"); - verifyWritable(this, "yield"); - verifyConfigurable(this, "yield"); diff --git a/src/class-fields/zero-empty-var.case b/src/class-fields/zero-empty-var.case deleted file mode 100644 index ae2135648..000000000 --- a/src/class-fields/zero-empty-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - 0; - -//- assertions - assert.sameValue(this["0"], undefined); - verifyEnumerable(this, "0"); - verifyWritable(this, "0"); - verifyConfigurable(this, "0"); diff --git a/src/class-fields/zero-initializer-var-computed-name-empty-function.case b/src/class-fields/zero-initializer-var-computed-name-empty-function.case deleted file mode 100644 index 195626c74..000000000 --- a/src/class-fields/zero-initializer-var-computed-name-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var, computed name empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0; ['b'](){} - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var-empty-function.case b/src/class-fields/zero-initializer-var-empty-function.case deleted file mode 100644 index d6033029c..000000000 --- a/src/class-fields/zero-initializer-var-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var, empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0; b(){} - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var-empty-var.case b/src/class-fields/zero-initializer-var-empty-var.case deleted file mode 100644 index 93a794095..000000000 --- a/src/class-fields/zero-initializer-var-empty-var.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var, empty var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0; b - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var-generator-empty-function.case b/src/class-fields/zero-initializer-var-generator-empty-function.case deleted file mode 100644 index 688d24e60..000000000 --- a/src/class-fields/zero-initializer-var-generator-empty-function.case +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var, generator empty function -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0; *b(){} - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var-new-line-asi.case b/src/class-fields/zero-initializer-var-new-line-asi.case deleted file mode 100644 index f4144acf0..000000000 --- a/src/class-fields/zero-initializer-var-new-line-asi.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var and newline (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0 - -//- assertions - assert.sameValue(this.a, 0); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/zero-initializer-var-new-line-empty-function-asi.case b/src/class-fields/zero-initializer-var-new-line-empty-function-asi.case deleted file mode 100644 index 8a3c24a85..000000000 --- a/src/class-fields/zero-initializer-var-new-line-empty-function-asi.case +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var and newline, empty function (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0 - b(){} - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var-new-line-empty-var-asi.case b/src/class-fields/zero-initializer-var-new-line-empty-var-asi.case deleted file mode 100644 index 46c13df92..000000000 --- a/src/class-fields/zero-initializer-var-new-line-empty-var-asi.case +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var and newline, empty var (ASI) -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0 - b - -//- assertions - 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"); diff --git a/src/class-fields/zero-initializer-var.case b/src/class-fields/zero-initializer-var.case deleted file mode 100644 index b2f10211c..000000000 --- a/src/class-fields/zero-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - a = 0; - -//- assertions - assert.sameValue(this.a, 0); - verifyEnumerable(this, "a"); - verifyWritable(this, "a"); - verifyConfigurable(this, "a"); diff --git a/src/class-fields/zero-zero-initializer-var.case b/src/class-fields/zero-zero-initializer-var.case deleted file mode 100644 index 64ad15f90..000000000 --- a/src/class-fields/zero-zero-initializer-var.case +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (C) 2016 the V8 project authors, 2017 Igalia S.L. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -desc: zero initialized zero var -info: | - 1.1 New Productions - - [...] - - FieldDefinitionList [Yield, Await]: - FieldDefinition [?Yield, ?Await] - FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await] -template: default -includes: [propertyHelper.js] ----*/ - -//- body - 0 = 0; - -//- assertions - assert.sameValue(this["0"], 0); - verifyEnumerable(this, "0"); - verifyWritable(this, "0"); - verifyConfigurable(this, "0"); |