Skip to content

Confusing error for super() in baseclass #102

Description

@y21
new (class { constructor() { super(); } })()
TypeError: super() must be called exactly once in a subclass constructor
  at <anonymous>
  at <anonymous>

This error is confusing/wrong. It is called exactly once, this just isn't a subclass

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions