mirror of https://github.com/tc39/test262.git
19 lines
531 B
JavaScript
19 lines
531 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-expr-static-field-initializer.template
|
|
/*---
|
|
description: static public class fields forbidden (early error -- static ClassElementName Initializer)
|
|
features: [class, class-fields-public]
|
|
flags: [generated]
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
var C = class {
|
|
static field = 0;
|
|
};
|