mirror of https://github.com/tc39/test262.git
18 lines
420 B
Plaintext
18 lines
420 B
Plaintext
// 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/elements/evaluation-error/
|
|
name: field definitions in a class declaration
|
|
features: [class]
|
|
esid: sec-runtime-semantics-classdefinitionevaluation
|
|
---*/
|
|
|
|
function evaluate() {
|
|
class C {
|
|
/*{ elements }*/
|
|
}
|
|
}
|
|
|
|
assert.throws(/*{ error }*/, evaluate);
|