Uh oh!
There was an error while loading. Please reload this page.
Deleted unnecessary 'use strict' in new project templates - #6322
Deleted unnecessary 'use strict' in new project templates#6322wwwsevolod wants to merge 2 commits into
Conversation
facebook-github-bot
commented
Mar 6, 2016
facebook-github-bot
commented
Mar 6, 2016
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
vjeux
commented
Mar 6, 2016
@facebook-github-bot shipit |
facebook-github-bot
commented
Mar 6, 2016
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
facebook-github-bot
commented
Mar 6, 2016
Thanks for importing. If you are an FB employee go to Phabricator to review. |
corbt
commented
Mar 9, 2016
Just a note, I think this was premature. Until #5796 lands 'use strict' is still necessary in modules in RN by default. |
Summary:Hello there! Since React Native generates `index.*.js` files with usage of ES6 modules, `'use strict'` became unnecessary. http://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code > Module code is always strict mode code. Closesreact/react-native#6322 Differential Revision: D3017181 Pulled By: vjeux fb-gh-sync-id: 39e0fe703b8d8a0093b952f2c18a36d0d28e1020 shipit-source-id: 39e0fe703b8d8a0093b952f2c18a36d0d28e1020
Hello there!
Since React Native generates
index.*.jsfiles with usage of ES6 modules,'use strict'became unnecessary.http://www.ecma-international.org/ecma-262/6.0/#sec-strict-mode-code