-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure when using class properties with calculated name. #787
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above fails when run under
esm
, the[kSymbol] = 1;
throws a syntax error (under node.js 12). node.js 12 has no problem with this syntax, replacingexport default
withmodule.exports =
makes this code work even with esm (I assume ESM detects lack of import/export and disables itself).The text was updated successfully, but these errors were encountered: