-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Strict mode #1659
Comments
AFAIK it's not possible to generate strict mode compatible code because the framework used during runtime isn't strict mode compatible. (i.e. it uses octal literals) |
Thanks for your answer, ngld! |
You're welcome. =) |
I also think it would take some work, but I am not sure how much. Would be interesting if someone tried. |
|
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant. |
Hi, friends!
It seems like Emscripten does not output strict mode compatible code (testing test/hello_world.cpp etc). Is this correct and if so, are there ways to compile to strict mode compatible code?
I dug around in the src and it seems like commented "use strict" directives started showing up in some files, for example in the commit https://github.com/kripken/emscripten/blob/d2b0d9924aa9a3603b0b16bd957832faf503c32d/src/compiler.js (various fixes from js strict mode testing).
Thanks,
Victor
The text was updated successfully, but these errors were encountered: