summaryrefslogtreecommitdiff
path: root/src/class-fields/propname-error-static/cls-decl-static-literal-name.template
blob: bba9b7d151748cf6c0392cc8e72221449f032575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2017 Valerie Young. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
path: language/statements/class/fields-prop-name-
name: early error -- static ClassElementName
negative:
  type: SyntaxError
  phase: early
---*/

throw "Test262: This statement should not be evaluated.";

class C {
  static /*{ propname }*/;
}