-
Notifications
You must be signed in to change notification settings - Fork 394
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
'yield' is a reserved word in strict mode #157
Comments
Hey @jamietre, reserved words may legally be used as object property names in ES5, so we probably won't change the name How does that sound? |
Sounds great! Thanks. |
Cool, just to make sure: Your tools will handle: I did a quick check of the codebase and there are only 2 usages of |
Yes - I had already made the change locally it works fine with exactly that change. |
Thanks! I'll try to get that out within the next day. |
…th .NET minifier, which does not yet understand ES5 identifier-as-property rules
Just pushed a fix to the hotfix-157 branch. Let me know if that looks good to you. |
Perfect! Thank you so much! |
Pushed to master, tagged, and published. |
See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Reserved_Words
The immediate consequence of this to me is that the minifier used by ASP.NET MVC4's script optimizer fails. Consider replacing the method name with a non-reserved word.
The text was updated successfully, but these errors were encountered: