Open geek opened 8 years ago
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 .
Also see https://github.com/google/traceur-compiler/issues/2107#issuecomment-213816228
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
Output from traceur