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
dart2js doesn't generate code compatible with strict mode #1686
Comments
Removed Type-Defect label. |
What is the strict-mode code pattern for defining a variable is it has not been defined, but augmenting it if it is defined (by another <script> tag) ? |
Removed Area-Frog label. |
This makes sense to consider for dart2js too. Removed FromAreaFrog label. |
Added this to the Later milestone. |
Removed this from the Later milestone. |
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
I made "reflection data parser" strict, and it was really helpful. However, all the generated code isn't strict yet. I don't think it would take much to start using strict everywhere, only issue is that we sometimes use this trick: (function() { return this })() to compute the global object. But most of that code has been updated to use "self". |
duplicate of #15432 |
This issue was originally filed by @Kaliber
It isn't really a bug, but a feature request.
Code generated by frog should begin with 'use strict'. To achive that a few bugs needs to be fixed in JavaScript generator (e.g. missing var, name collision for variable 'arguments')
The text was updated successfully, but these errors were encountered: