Skip to content
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

no "use strict" in a es6 module context #958

Closed
wants to merge 1 commit into from

Conversation

jquense
Copy link
Contributor

@jquense jquense commented Apr 29, 2016

Since modules are strict by default its a bit odd. super tiny nit.

@ghost ghost added the CLA Signed ✔️ label Apr 29, 2016
@cpojer
Copy link
Member

cpojer commented Apr 29, 2016

wait, are they? In Jest, modules definitely behave differently based on whether "use strict" is given and I believe in nodejs too.

@jquense
Copy link
Contributor Author

jquense commented Apr 29, 2016

sorry, "modules" in the es6 sense, babel will add "use strict" for you, which is why i left it in the bottom example but not in the test file ones.

@cpojer
Copy link
Member

cpojer commented Apr 29, 2016

I didn't know that! Would you mind also removing it from examples/react? :)

Since modules are strict by default its a bit odd. super tiny nit.
@jquense
Copy link
Contributor Author

jquense commented Apr 29, 2016

👍

@cpojer
Copy link
Member

cpojer commented Apr 29, 2016

@facebook-github-bot shipit

@ghost
Copy link

ghost commented Apr 29, 2016

Thanks for importing. If you are an FB employee go to Phabricator to review.

@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants