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

Parse child of mispelled await expression as if it was inside async #498

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Nov 8, 2021

  1. Do not treat await followed by arrow function as an identifier

    If we detect that `await` is followed by an arrow function early inside
    `is_identifier` function we can avoid treating `await` as an identifier
    and correctly identify that the intention of the user was to use `async`.
    keyehzy committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    b4f570f View commit details
    Browse the repository at this point in the history
  2. Parse child of mispelled await expression as if was inside async

    We detect that the intention of the user was to use `async` and parse
    its child as if so.
    keyehzy committed Nov 8, 2021
    Configuration menu
    Copy the full SHA
    60f52d0 View commit details
    Browse the repository at this point in the history