Prepare evaluation error fields to receive more cases using heritance

This commit is contained in:
Leo Balter 2018-11-29 17:32:17 -05:00 committed by Rick Waldron
parent b9aa09c33e
commit e2b115567f
2 changed files with 4 additions and 4 deletions

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/statements/class/fields-evaluation-error- path: language/statements/class/fields-evaluation-error/
name: field definitions in a class declaration name: field definitions in a class declaration
features: [class] features: [class]
esid: sec-runtime-semantics-classdefinitionevaluation esid: sec-runtime-semantics-classdefinitionevaluation
---*/ ---*/
function evaluate() { function evaluate() {
class C { class C /*{ heritage }*/ {
/*{ elements }*/ /*{ elements }*/
} }
} }

View File

@ -2,14 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
path: language/expressions/class/fields-evaluation-error- path: language/expressions/class/fields-evaluation-error/
name: field definitions in a class expression name: field definitions in a class expression
features: [class] features: [class]
esid: sec-runtime-semantics-classdefinitionevaluation esid: sec-runtime-semantics-classdefinitionevaluation
---*/ ---*/
function evaluate() { function evaluate() {
var C = class { var C = class /*{ heritage }*/ {
/*{ elements }*/ /*{ elements }*/
}; };
} }