We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Traceur transpiled code is looking like this:
var e,r=customElements,n=(e=HTMLElement,$traceurRuntime.createClass((function e(){$traceurRuntime.superConstructor(e).call(this),this.style="color: red;"}),{},{},e));
From:
class Foo extends HTMLElement { constructor() { super(); this.style = 'color: red;'; } };
And results:
Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
Where this statement fails (the this object is a HTMLElement instance):
this
$traceurRuntime.superConstructor(e).call(this)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Traceur transpiled code is looking like this:
From:
And results:
Where this statement fails (the
this
object is a HTMLElement instance):The text was updated successfully, but these errors were encountered: