mirror of https://github.com/tc39/test262.git
20 lines
583 B
JavaScript
20 lines
583 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/class-fields/static-public-fields-forbidden.case
|
|
// - src/class-fields/propname-error-static/cls-decl-static-literal-name.template
|
|
/*---
|
|
description: static public class fields forbidden (early error -- PropName of IdentifierName is forbidden value)
|
|
esid: sec-class-definitions-static-semantics-early-errors
|
|
features: [class, class-fields-public]
|
|
flags: [generated]
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
class C {
|
|
static field;
|
|
}
|