Skip to content

Anonymous class must be hoisted when it's part of var declaration or return statement #26

@alexeychikk

Description

@alexeychikk
// 1.
const Foo = class {};
// 2.
(() => class {})();
// 3.
function fooBar() {
  return class {};
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions