In the existing implementations I’ve tried, it appears I can’t do this:
class SuperFunction extends Function { }
(also tried with constructor(str) { super(str) })
It “works”, but the resulting new SuperFunction(“return 5”) is just a
Function, not a SuperFunction. Is Function meants to be an exception to the
subclassing built-ins, or should it also work?
Thanks,
Francisco
--
Francisco Tolmasky
www.tolmasky.com
[email protected]
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss