static field initializer as an arrow function containing new.target is not allowed
gsathya opened this issue · comments
Sathya Gunasekaran commented
Input Code
class X {
static c = () => new.target;
}
Babylon/Babel Configuration
stage2, stage3
Expected Behavior
No error
Current Behavior
repl: new.target can only be used in functions (2:23)
1 | class X {
> 2 | static c = () => new.target;
| ^
3 | }