   for use with script code running in the specified script engine.
            </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<span id="LST38795863_1" data-languageSpecificText="cs=&lt;|vb=(Of |cpp=&lt;|fs=&lt;'|nu=("></span>T<span id="LST38795863_2" data-languageSpecificText="cs=&gt;|vb=)|cpp=&gt;|fs=&gt;|nu=)"></span>(Task<span id="LS