[Bug 27605] [NewObject] and Promise

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27605

--- Comment #3 from Boris Zbarsky <bzbarsky@mit.edu> ---
It means the Promise instance returned is always a new one.  Its fulfillment
value might be the same as before.

We could add more syntax to talk about the fulfillment value, I suppose... 
This quickly gets complicated.  It's comparable to asking about this case:

  [NewObject] Element createElement(DOMString tagname);

whether the various properties of the Element returned are newly created or
preexisting (and the answer is that it depends; the .childNodes will be a
never-before-seen object but the .ownerDocument will be the document you called
createElement on).  The only real difference is that in the Promise case there
is a preferred internal slot we're talking about: the fulfillment value.  But I
think describing how it's filled in via prose is pretty reasonable...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Monday, 15 December 2014 07:53:20 UTC