- From: Joe Pea <notifications@github.com>
- Date: Sat, 30 Sep 2017 16:22:12 +0000 (UTC)
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 30 September 2017 16:22:35 UTC
All, the strict enforcement of super means that transpilers can not compile to ES5 without using Reflect.construct because Reflect.construct won't work in anything below Edge 12. This is a bad because not everyone is off of IE 10 or 11 yet, and there's no way to transpile this to a format that doesn't use `new.target` or `Reflect.construct`. What this means is that people transpiling this to ES5 and using a Custom Elements v1 will get lucky that it works in IE10, but then they'll get this error in new browsers like Chrome: ``` Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function ``` -- 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/423#issuecomment-333319140
Received on Saturday, 30 September 2017 16:22:35 UTC