Skip to content

await strips parentheses #239

@marudor

Description

@marudor
class foo {
  async bar() {
    return (await this.foo()).size;
  }
  foo() {}
}

->

class foo {
  async bar() {
    return await this.foo().size;
  }
  foo() {}
}

as you can see this changes how the function behaves.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions