In practice, this means that (sticking to ES5 syntax), you need to do

```js
MyPromise.__proto__ = Promise;
```

-----Original Message-----
From: es-discuss [mailto:es-discuss-boun...@mozilla.org] On Behalf Of Allen 
Wirfs-Brock
Sent: Saturday, February 8, 2014 14:18
To: Allen Wirfs-Brock
Cc: es-discuss
Subject: Re: SubTyping Promise?

err, missing word
On Feb 8, 2014, at 11:07 AM, Allen Wirfs-Brock wrote:

> ...
> 
> The magic is in the Promise[Symbol.create] method which is inherited by 
> MyPromise and invoked during (new MyPromise).  Playing around with the 
> instance side prototype chain >>isn't<< enough. 
> 
> Allen
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss@mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to