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
[Regression] default class exports #725
Comments
thank you @manniL for bringing this up! @jdalton seems to be an introduced bug by fwiw, hoisting still works for exported default function declarations: export default function Test() {}
Test.something = "ok"; somewhat surprised that there isn't a test262 test for this which could have caught this. gonna check over there as well. |
Thanks for the report @manniL and thanks for digging in @dnalborczyk! After review it is not an Acorn issue but an Update: |
v3.2.2 is released 🎉 |
We actually had the same issue, see acornjs/acorn#810. |
Having the following
test.js
file:will throw an error with esm@3.2.1
but not with esm@3.2.0 nor esm@3.1.4
Originally posted by @manniL in #722 (comment)
The text was updated successfully, but these errors were encountered: