/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" target="_blank" rel="noopener noreferrer">promise</a>
            for use with script code currently running on the calling thread.
            </td></tr><tr><td><img src="../icons/pubExtension.gif" alt="Public Extension Method" title="Public Extension Method" /></td><td><a href="M_Microsoft_ClearScript_JavaScript_JavaScriptExtensions_ToPromise_1.htm">ToPromise(Task, ScriptEngine)</a></td><td>
            Converts a <span class="code"><a href="htt