You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A runtime error ReferenceError: Cannot access 'Foo' before initialization when using target: "es2021" when trying to instantiate a class that contains both a static ES #private field and a method that has a computed method name. Compiled code runs fine without runtime errors when using target: "ESNEXT" (no downleveling).
🙂 Expected behavior
Code runs without errors.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
static ES private fields, static private members, computed class method name, class instantiation fails
🕗 Version & Regression Information
4.3.0-beta
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
A runtime error
ReferenceError: Cannot access 'Foo' before initialization
when usingtarget: "es2021"
when trying to instantiate a class that contains both a static ES #private field and a method that has a computed method name. Compiled code runs fine without runtime errors when usingtarget: "ESNEXT"
(no downleveling).🙂 Expected behavior
Code runs without errors.
The text was updated successfully, but these errors were encountered: