Open trusktr opened 5 years ago
Oh bananana... should be Object.setPrototypeOf
.
Thanks for the excellent bug report π.
The merged fix gets us to:
WebComponent: Your custom element (DeclarativeBase) should specify observed attributes or attributeChangedCallback won't be called
WebComponent: Your custom element (ImperativeBase) should specify observed attributes or attributeChangedCallback won't be called
TypeError: Super(...)[_method] is not a function
at Object.attachShadow (https://unpkg.com/infamous@19.0.4/global.js:56900:48)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:57412:34)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:10326:25)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:10070:25)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:55730:25)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:55979:25)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:57936:29)
at Object.construct (https://unpkg.com/infamous@19.0.4/global.js:57590:25)
at Object.constructor (https://unpkg.com/infamous@19.0.4/global.js:56565:18)
at Object.WebComponent (https://unpkg.com/infamous@19.0.4/global.js:515:31)
Hmmm, interesting, looks like something about lowclass
isn't working in ExoKit (works in regular browsers).
I'll step through it soon to see what's going on.
I would possibly look into any usage of instanceof with primitive objects.
Exokit currently does a lot of multi-context species hacks there to make window isolation work. That is being factored out right now, but itβs been a source of bugs that smell like this in the past.
By the way, thanks for making that quick fix. I'm looking forward to get make something awesome with this! π
I'm having fun, built it myself (no luck with the DMG) and trying out demos. Looking forward to getting my custom WebGL stuff running (https://github.com/trusktr/infamous)!
Here's the basic demo I am trying to run:
https://s.codepen.io/trusktr/debug/293963ee1c01075e831990e55a67b818
(Here's the editable version)
But it throws this error in the ExoKit console:
The callsite of my code, global.js line 56872, is this:
which is being called inside of a static method of my class, so
this
refers to the class constructor itself, andname
is the element name.