Accesssing ES6 class constructor function

Don Griffin don at sencha.com
Thu Jan 5 22:08:13 UTC 2017


Hi Logan,

> So we're all on the same page, this restriction exists because it
> means `class` syntax can extend builtin types like `Map`, `Set`,
> Array` and `Error` and such, which cannot be extended (with
> correct functionality anyway) in standard ES5

That makes sense for built-ins, but is there some reason this enforcement
cannot be applied for those constructors (perhaps *by* them) and not *all*
constructors?

(btw - thanks for explaining the point of this - I was not aware of that)

Best,
Don
--
Don Griffin
Director of Engineering
Sencha, Inc.
https://www.sencha.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170105/31f798df/attachment.html>


More information about the es-discuss mailing list