extending an ES6 class using ES5 syntax?

Renki Ivanko fatalis.erratum at gmail.com
Sat May 14 01:35:52 UTC 2016

> That said, can't the right thing be done using Reflect.construct?

It can:

function B() {
return Reflect.construct(A, arguments)

`instanceof B` will be `false`, though.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160514/2a5b250f/attachment.html>

More information about the es-discuss mailing list