-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Faulty code does not throw an error #983
Comments
I think it's because the test code is compiled by Babel, and the compiled code is not trying to cause Not sure there is anything to be done about this. (By the way, has there been a discussion to only compile only what is needed based on what is supported in the node version that runs the tests? Couldn't find one) |
Looks like a Babel bug or caveat indeed. @Timyipstudio Could you maybe try asking about it in the Babel support channels? Sidenote: If you want to check if something throws, use |
@jfmengels Yup: #148 |
I could only find babel/babel#563 on this, and there is some TDZ related code in the As far as AVA goes, we can do better by not transpiling language features that are supported by the Node.js runtime, which is #148. |
when i run code above. it didn't throw a error
The text was updated successfully, but these errors were encountered: