mirror of
https://github.com/tc39/test262.git
synced 2025-09-26 11:38:50 +02:00
18 lines
442 B
Plaintext
18 lines
442 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/expressions/class/fields-evaluation-error/
|
|
name: field definitions in a class expression
|
|
features: [class]
|
|
esid: sec-runtime-semantics-classdefinitionevaluation
|
|
---*/
|
|
|
|
function evaluate() {
|
|
var C = class /*{ heritage }*/ {
|
|
/*{ elements }*/
|
|
};
|
|
}
|
|
|
|
assert.throws(/*{ error }*/, evaluate);
|