There are ways for syncing promises for Node compatibility, although they all lie in C++ land. Similar has already been done with Node callbacks.
https://www.npmjs.com/package/sync (You could also spawn a thread, block for a message, and join it with the promise result from a C++ callback from a thenable.) On Tue, Aug 18, 2015, 18:06 Bradley Meck <[email protected]> wrote: > The problem is timing; WHATWG uses promises, which Node cannot use due to > existing code bases on npm + potential mixing w/ `require`. This causes > time discrepancies and would mean different actions depending on how > exactly hooks are specced out. Node does not want to prevent async loading > on the browser, and the WHATWG loader does not want to cause breakage in > Node. > > On Tue, Aug 18, 2015 at 4:56 PM, Jason Orendorff < > [email protected]> wrote: > >> On Tue, Aug 18, 2015 at 12:45 PM, Bradley Meck <[email protected]> >> wrote: >> > This would assume they can support the transformation hooks to do things >> > like load coffeescript etc. right now, which is the main contention >> point. >> >> It is a perfectly ordinary occurrence in software to ship some >> capability at one point, and ways of customizing that capability >> later. >> >> -j >> > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

