Re: [w3c/webcomponents] Non-class based example of customElement.define() (#587)

Wow Justin, that's an incredible hack (using `Object.setPrototypeOf(this, ...)` inside the native constructor. I hadn't thought of such a thing before.

The arrow function and `const` is still in the way though. If we're running this code in older browsers (which is probably true if we're compiling to ES5), it will throw a syntax error.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/587#issuecomment-333322819

Received on Saturday, 30 September 2017 17:18:41 UTC