blob: 6a77134e101f74c1c50939d6b1ca097daa1ae6be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Copyright (C) 2017 Leo Balter. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
path: language/statements/class/fields-evaluation-error-
name: field definitions in a class declaration
features: [class, class-fields-public]
esid: sec-runtime-semantics-classdefinitionevaluation
---*/
function evaluate() {
class C {
/*{ fields }*/
}
}
assert.throws(/*{ error }*/, evaluate);
|