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

Allow super when using optional chaining #498

Merged
merged 1 commit into from
Jan 2, 2020

Commits on Jan 2, 2020

  1. Allow super when using optional chaining

    Progress toward #461
    
    Tech plan:
    https://github.com/alangpierce/sucrase/wiki/Sucrase-Optional-Chaining-and-Nullish-Coalescing-Technical-Plan
    
    To allow super, we mostly just need to skip the code transform on the first
    subscript. We also need to add a `.bind(this)` when transforming the second
    subscript, which can be determined through a relatively straightforward token
    scan.
    alangpierce committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    b7684f5 View commit details
    Browse the repository at this point in the history