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

So how are we supposed to have layers of ES5-style classes if we don't even have a working `new.target`?

It is really hard to implement a global `new.target` stack, and detecting if constructors were called with `new` isn't even 100% possible with ES5-style code.

`new.target` was invented to fix this, and the engine isn't even using it!

-- 
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-378672048

Received on Wednesday, 4 April 2018 17:01:00 UTC