What should happen if you resolve a promise with another promise?
<p>What does the ECMAScript 6.0 specification say about a <code>Promise</code> resolving another <code>Promise</code>? Should it adopt the state of the other <code>Promise</code> by attaching a <code>then</code> to that <code>Promise</code> which would resolve this one?</p>

<p>I tried this snippet in Chrome and here is what I get and it seems to just resolve the <code>Promise1</code> with <code>Promise2</code> is that fine?</p>

<pre><code>&gt; Promise1 = new Promise(function(resolve){ResolveYouLater1 = resolve})
&gt; Promise2 = new Promise(function(resolve){ResolveYouLater2 = resolve})
&gt; ResolveYouLater1(Promise2)
  undefined
&gt; Promise1
  Promise {[[PromiseStatus]]: "resolved", [[PromiseValue]]: Promise}
</code></pre>

<p>I thought it should attach a <code>then</code> to Promise2 which should <code>ResolveYouLater1(value)</code> when <code>Promise2</code> is the settled.</p>