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.target fails #5032

Closed
rafikalid opened this issue Apr 14, 2018 · 1 comment
Closed

new.target fails #5032

rafikalid opened this issue Apr 14, 2018 · 1 comment

Comments

@rafikalid
Copy link

as you know, new.target contains the current object when "new" is used with a function (as contructor)
we use this as flag to detect the use of "new" keyword.

Coffeescript compiler fails when using this expression, so we need to use javascript injection instead.

Expected behaviour:
"new.target" should be used without any problem

@GeoffreyBooth
Copy link
Collaborator

Duplicate of #4609.

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

2 participants