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

Fix printing edge cases in Nullish Coalescing and Optional Chaining #11255

Merged
merged 1 commit into from Mar 13, 2020

Commits on Mar 13, 2020

  1. Fix printing edge cases in Nullish Coalescing and Optional Chaining

    This is a mix of changes, most importantly:
    
    - Always print parens when mixing nullish coalescing and another logical
    - Fixes assignment in the callee of an optional chain, which now blocks babel#11248
    
    Also, cleans up a bit of code, and removes an unnecessary parens around `class A extends new B {}`
    jridgewell committed Mar 13, 2020
    Copy the full SHA
    519cdff View commit details
    Browse the repository at this point in the history