Skip to content

Cannot extend ES6 classes: Class constructors cannot be invoked without 'new' #4208

@balupton

Description

@balupton

Just did this repo to test interopability between CoffeeScript and ES6 classes: https://github.com/balupton/javascript-coffeescript-class-interop

However it turns out that while ES6 classes can extend CoffeeScript classes, CoffeeScript cannot extend ES6 classes due to the error: Class constructors cannot be invoked without 'new'

As ES6 becomes more widely adopted, this seems to be a large interop issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions