summaryrefslogtreecommitdiff
path: root/src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case
blob: 139ac66ee2f6100b69e8465cfbcf52842484fa48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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");