<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Awesome, thank you!<br>
    <br>
    -N<br>
    <br>
    <div class="moz-cite-prefix">On 7/14/2015 10:12 AM, Domenic Denicola
      wrote:<br>
    </div>
    <blockquote
cite="mid:769DF95F72391C8C.1-fd27430d-bc1d-4104-8c22-638ebe26f5b3@mail.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from text -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <div>
        <p dir="ltr">Yes.<br>
        </p>
        <br>
        <br>
        <br>
        <div class="x_gmail_quote">On Tue, Jul 14, 2015 at 10:10 AM
          -0700, "Nicholas C. Zakas"
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:standards@nczconsulting.com" target="_blank">standards@nczconsulting.com</a>></span>
          wrote:<br>
          <br>
        </div>
      </div>
      <font size="2"><span style="font-size:10pt;">
          <div class="PlainText">Hi all,<br>
            <br>
            I'm trying to wrap my head around derived promises and
            wanted to ask for <br>
            a bit of clarification around how `Promise.resolve()` works
            from a <br>
            derived class. Consider this:<br>
            <br>
            ```<br>
            class MyPromise extends Promise {}<br>
            <br>
            var p1 = new Promise(function(resolve, reject) {<br>
                 resolve(42);<br>
            });<br>
            <br>
            var p2 = MyPromise.resolve(p1);<br>
            p2.then(function(value) {<br>
                 console.log(value);<br>
            });<br>
            ```<br>
            <br>
            Am I correct in believing that:<br>
            <br>
            1. `p1` is resolved upon being passed to
            `MyPromise.resolve()`? I <br>
            believe this is what happens in 25.4.4.5 Step 6 <br>
            (<a moz-do-not-send="true"
href="http://www.ecma-international.org/ecma-262/6.0/#sec-promise.resolve">http://www.ecma-international.org/ecma-262/6.0/#sec-promise.resolve</a>)<br>
            2. `p2` is an instance of `MyPromise` that is resolved with
            a promise <br>
            value of 42.<br>
            <br>
            Thanks!<br>
            <br>
            -- <br>
            ___________________________<br>
            Nicholas C. Zakas<br>
            <a moz-do-not-send="true" href="http://www.nczonline.net">http://www.nczonline.net</a><br>
            <br>
            _______________________________________________<br>
            es-discuss mailing list<br>
            <a class="moz-txt-link-abbreviated" href="mailto:es-discuss@mozilla.org">es-discuss@mozilla.org</a><br>
            <a moz-do-not-send="true"
              href="https://mail.mozilla.org/listinfo/es-discuss">https://mail.mozilla.org/listinfo/es-discuss</a><br>
          </div>
        </span></font>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
___________________________
Nicholas C. Zakas
<a class="moz-txt-link-freetext" href="http://www.nczonline.net">http://www.nczonline.net</a></pre>
  </body>
</html>