Revert "Add initial set of class field tests (from V8's test-parsing.cc)"

This reverts commit e731114cff.
This commit is contained in:
Daniel Ehrenberg 2017-07-13 20:54:36 +02:00 committed by GitHub
parent 4213586ebd
commit 3b0838917c
46 changed files with 0 additions and 1262 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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();

View File

@ -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();

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");