Skip to content

Cannot transpile yield/await spread for Firefox 47 #12690

@boris-petrov

Description

@boris-petrov

Bug Report

Current behavior

import Component from '@glimmer/component';
import intersection from 'lodash/intersection';

export default class FooComponent extends Component {
  async foo() {
    intersection(...(await Promise.all([])));
  }
}

Expected behavior
Code to be transpiled correctly.

Currently Babel blows up with:

Expected type "Expression" with option undefined, but instead got "SpreadElement".

Using firefox 35 for targets works. As does firefox 53 and above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: upstreamoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions