Re: Issue when subclassing a bound function used as constructor

2014-06-26 Thread Allen Wirfs-Brock
Hmm On Jun 26, 2014, at 9:57 AM, Claude Pache wrote: > > let C be some constructor > let D = C.bind(obj, a, b) > > Thanks to the carefully designed `D.[[Construct]]` internal method, the > following expressions are equivalent: Hmmand showing that perhaps is isn't so easy to ge

Issue when subclassing a bound function used as constructor

2014-06-26 Thread Claude Pache
let C be some constructor let D = C.bind(obj, a, b) Thanks to the carefully designed `D.[[Construct]]` internal method, the following expressions are equivalent: new D(...args) new C(a, b, ...args) Consider now: class E extends D { contructor(...args) {