Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend SomeClass.build() fails in ES6 #150

Open
issa-tseng opened this issue Apr 9, 2019 · 1 comment
Open

extend SomeClass.build() fails in ES6 #150

issa-tseng opened this issue Apr 9, 2019 · 1 comment
Labels

Comments

@issa-tseng
Copy link
Owner

issa-tseng commented Apr 9, 2019

TypeError: Cannot call a class constructor without |new|

where SomeClass is some ES6-generated Model.build classdef, for example.

this happens because ES6 constructors cannot be called without keyword new, but coffeescript 1.x does not know this.

hmmm.

@issa-tseng
Copy link
Owner Author

so far i have not found any solution that preserves both of:

  • solving the problem so that eg ES6 extends Model.build does not break on second inheritance, and
  • preserves IE support.

this is a mess.

@issa-tseng issa-tseng added the bug label May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant