-
Notifications
You must be signed in to change notification settings - Fork 102
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
Can users set strict mode in JSX? #324
Comments
I have found a way to set strict mode in node.js.
|
Thank you for your contribution. Did the generated code run under strict mode? IMO we should better always set |
FYI The code generated by JSX is not compatible with strict mode. You can see some tests failing in branch: https://github.com/jsx/JSX/tree/kazuho/experiments/use-strict |
As tested your branch on my environment (v0.11.11), I don't see any warning or test failures. Which test case did you see failing? |
Sorry. You need to run I have fixed subtle issues re compatibility with strict mode, but there are still problems. |
I published a JSX module implements
Object.freeze
in yesterday.https://github.com/yosuke-furukawa/freezer.jsx
However,
Object.freeze
do not throw exception in non-strict mode.I would like to know how to set 'use strict' in JSX.
The text was updated successfully, but these errors were encountered: