Wording in 24.9.3

15 views
Skip to first unread message

Adam Rackis

unread,
Jul 8, 2015, 12:30:15 AM7/8/15
to explor...@googlegroups.com
in 24.9.3 you have

All static methods of Promise support subclassing
 - they create new Promise instances via the so-called species pattern.

[emphasis mine]

then in 24.9.3.1 you mention that Promise.resolve does not use the species pattern to convert a thenable to a Promise, and instead uses the type of the receiver (this).  Should be preceding section note that not all static methods use the species pattern?  Should it say something more like

 - they [may] create new Promise instances via the so-called species pattern 
?

or  

 - they create, with some (or one?) exceptions, new Promise instances via the so-called species pattern 
Reply all
Reply to author
Forward
0 new messages