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

Interop feature for new.target in JS functions #4588

Open
sjrd opened this issue Oct 23, 2021 · 0 comments
Open

Interop feature for new.target in JS functions #4588

sjrd opened this issue Oct 23, 2021 · 0 comments
Labels
language Affects language semantics.

Comments

@sjrd
Copy link
Member

sjrd commented Oct 23, 2021

Extracted from #2638. We can now use js.new.target to refer to new.target in the constructor of a JS class. However, there is still no way to access new.target from a non-arrow function (i.e., a js.ThisFunction).

@sjrd sjrd added the language Affects language semantics. label Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language Affects language semantics.
Projects
None yet
Development

No branches or pull requests

1 participant