Skip to content

new super() in static method does not cause errorย #63451

Description

๐Ÿ”Ž Search Terms

super

๐Ÿ•— Version & Regression Information

This exists in ts6.0

โฏ Playground Link

No response

๐Ÿ’ป Code

class A extends class {} {
    static {
        new super()
    }

    static f() {
        new super()
    }
}

๐Ÿ™ Actual behavior

no error

๐Ÿ™‚ Expected behavior

new super() is invalid and should throw error.

Additional information about the issue

No response

Activity

  1. RyanCavanaugh commented on Apr 30, 2026

    @RyanCavanaugh
  2. Withered-Flower-0422 commented on Apr 30, 2026

    @Withered-Flower-0422
    Author

    No.
    Javascript never allows new super().
    In both browser and node runtime, new super() just throws errors.

  3. mkantor commented on May 1, 2026

    @mkantor
    Contributor

    Why did the bot add the "Fix Available" label? I can't find any relevant pull requests.

    EDIT: Seems like this happened to #63391 as well.

  4. RyanCavanaugh commented on May 4, 2026

    @RyanCavanaugh
    Member

    Bot's broken and no one has had the time to figure out why ๐Ÿ˜…. We don't really use the label for anything at the moment

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

    BugA bug in TypeScriptDomain: classesBehavior of various `class` constructs, e.g. mixins or base classes

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions