System.import()?
Isiah Meadows
isiahmeadows at gmail.com
Wed Aug 19 08:38:40 UTC 2015
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 <bradley.meck at gmail.com> 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 <
> jason.orendorff at gmail.com> wrote:
>
>> On Tue, Aug 18, 2015 at 12:45 PM, Bradley Meck <bradley.meck at gmail.com>
>> 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
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150819/61c7a3a6/attachment.html>
More information about the es-discuss
mailing list