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 is not supported #2112

Open
geek opened this issue May 6, 2016 · 1 comment
Open

new.target is not supported #2112

geek opened this issue May 6, 2016 · 1 comment

Comments

@geek
Copy link

geek commented May 6, 2016

https://google.github.io/traceur-compiler/demo/repl.html#function%20Fn%20()%20%7B%0A%20%20const%20isConstructed%20%3D%20(new.target%20%3D%3D%3D%20Fn)%3B%0A%7D

function Fn () {
  const isConstructed = (new.target === Fn);
}

Output from traceur

traceured.js:2:29: Unexpected token .
@arv arv changed the title Complains about new.target new.target is not supported May 8, 2016
@arv
Copy link
Collaborator

arv commented May 8, 2016

Also see #2107 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants