You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buble compiles super() calls to something like ParentClass.call(this).
This causes any and all Custom Elements (v1) to not work because they require the use of new (ES2015 classes), with an error like the following in Chrome:
Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function
Buble compiles
super()
calls to something likeParentClass.call(this)
.This causes any and all Custom Elements (v1) to not work because they require the use of
new
(ES2015 classes), with an error like the following in Chrome:For example, see this output.
Try to run the output code in your browser, and you'll get the error.
Hmm, I don't think this is a bug with Buble. It's just not possible to compile anything for Custom Elements v1 to ES5 it seems. :(
This is a bug with Custom Elements v1 and it being designed for future browsers in a way that is impossible to transpile downward.
The text was updated successfully, but these errors were encountered: