10000 Turning on strict mode in system-config.ts. Fixes angular/angular-cli… by Xinkai · Pull Request #1346 · angular/angular-cli · GitHub
[go: up one dir, main page]

Skip to content

Turning on strict mode in system-config.ts. Fixes angular/angular-cli… #1346

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

Merged
merged 1 commit into from
Jul 17, 2016

Conversation

Xinkai
Copy link
Contributor
@Xinkai Xinkai commented Jul 14, 2016

Fixes #758.

V8 implementation seems to have a problem with const in sloppy mode. Latest Firefox does not have this problem. Rather than "downgrading" const to var, system-config.ts should have"use strict"; at the beginning. This way in Chrome (version 51), const statement can work properly. Plus it's a good practice too to enable strict mode in newer projects such as angular2.

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@Xinkai
Copy link
Contributor Author
Xinkai commented Jul 14, 2016

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

@hansl
Copy link
Contributor
hansl commented Jul 17, 2016

LGTM.

@hansl hansl merged commit c85b14f into angular:master Jul 17, 2016
Splaktar pushed a commit to DevIntent/angular-cli that referenced this pull request Jul 31, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

system-config.ts not es6 compatible (?)
3 participants
0