mirror of
https://github.com/tc39/test262.git
synced 2025-05-10 09:50:30 +02:00
40 lines
805 B
JavaScript
40 lines
805 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - src/class-elements/grammar-privatename-whitespace-error-call-expr.case
|
|
// - src/class-elements/syntax/invalid/cls-expr-elements-invalid-syntax.template
|
|
/*---
|
|
description: No space allowed between sigil and IdentifierName (CallExpression) (class expression)
|
|
esid: prod-ClassElement
|
|
features: [class-fields-private, class]
|
|
flags: [generated]
|
|
negative:
|
|
phase: parse
|
|
type: SyntaxError
|
|
info: |
|
|
Updated Productions
|
|
|
|
MemberExpression :
|
|
MemberExpression . PrivateName
|
|
|
|
CallExpression :
|
|
CallExpression . PrivateName
|
|
|
|
PrivateName ::
|
|
# IdentifierName
|
|
|
|
---*/
|
|
|
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
var C = class {
|
|
#x;
|
|
|
|
f() {
|
|
return this;
|
|
}
|
|
|
|
m() {
|
|
this.f().# x;
|
|
}
|
|
};
|