-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Avoid breaking catch/finally on angular promises #436
Conversation
The current bug for this also includes |
+1 |
@bitwiseman The throw is now excluded from the scope and python version is done. Should I check around these tokens for context to make sure it's a promise or is it too much ? |
See #368. I don't want take this for promises in particular. I want to see it work for any case where a keyword is used as the name of a property or function. You've done great work leveraging the existing structures in your other PRs. This one's a little harder because we want to treat any identifier that comes after Since we do a bunch of string compares for keywords... The right thing is to add a |
This is what I'm talking about, although a bit rough... |
Doesn't look rough to me, it actually feels very coherent with the coding style of the project. |
Thanks. The change is what I described to you, it is in the right direction, and it is enough. TK_RESERVED still feels hacky to me. 😄 I'm going to close this in favor of mine. Thanks for the push to get this done - it is a heavily requested feature and unblocks us for correct handling of other ES6 and reserved words. |
Well I can't take credit for it but thanks for supporting the effort of moving to an ES6-compatible version :) |
Fixes cases where code like :
would end up looking like this :