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
The call to __publicField(this, "bar", "bar"); occurs before either instance of super(...data);. The issue appears to occur for the same reason as #678, but only when there are multiple possible super calls.
The esbuild version is 0.14.28.
The text was updated successfully, but these errors were encountered:
Thanks for the report. I've been meaning to fix this for a while. TypeScript typically doesn't allow this so I never hit this myself, but of course people still want to be able to do this in JavaScript. Here's the TypeScript compile error for this:
A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers.
This issue is almost identical to #678.
When processing a class similar to this:
Using the following command:
The returned code is as follows:
The call to
__publicField(this, "bar", "bar");
occurs before either instance ofsuper(...data);
. The issue appears to occur for the same reason as #678, but only when there are multiple possiblesuper
calls.The esbuild version is
0.14.28
.The text was updated successfully, but these errors were encountered: