extending an ES6 class using ES5 syntax?

Renki Ivanko fatalis.erratum at gmail.com
Sat May 14 01:22:02 UTC 2016

This may be a small bit nicer:

class A {}

function B() {
  return Reflect.construct(A, arguments, B)
Reflect.setPrototypeOf(B.prototype, A.prototype)
Reflect.setPrototypeOf(B, A)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160514/d3d1e9c1/attachment-0001.html>

More information about the es-discuss mailing list