Skip to content

[Bug]: Uninitialized class inited unexpected #16795

@magic-akari

Description

@magic-akari

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

Babel Playground

class Bar {}
class Foo extends Bar {
  constructor() {
    x: {
      break x;
      super();
    }
  }
}

try {
  new Foo();
} catch {
  console.log("catched");
}

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current behavior: nothing printed

Expected behavior: print catched

Environment

N/A

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedA 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