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

new keyword can't be used with non-explicit constructor #4

Open
sinelaw opened this issue Mar 23, 2015 · 0 comments
Open

new keyword can't be used with non-explicit constructor #4

sinelaw opened this issue Mar 23, 2015 · 0 comments

Comments

@sinelaw
Copy link
Owner

sinelaw commented Mar 23, 2015

tests/valid/new-func.js fails, because this function:

function mkn(f, a) { return new f(a); }

Can't really be used due to automatic row-closing (f is inferred to have this of type {})

@sinelaw sinelaw changed the title Support new on non-explicit constructor new keyword can't be used with non-explicit constructor Mar 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant