Skip to content

Cannot transpile class expression for Firefox 47 #12692

@boris-petrov

Description

@boris-petrov

Bug Report

Current behavior

export default async function () {
  return class extends Base {
    foo() {
      return 1;
    }
  };
}

Expected behavior
Code to be transpiled correctly.

Currently Babel blows up with:

unknown Expression of type "ClassExpression"

Using firefox 35 for targets works. As does firefox 53 and above. Similarly to #12690.

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