Hello Kouhei,I am the V8 engineer who added support for Top Level Await to V8. I wanted to sync up, and figure out the path to getting this feature enabled in Blink. The major change from a module loading perspective is that Module::Evaluate now returns a promise, and the module loader must now wait for the resolution of this promise.In D8, I accomplished this by simply blocking until the module's promise resolves. This was the cl that added support for top level await to D8. I imagine such a solution will not be possible in Blink.
Anyway, what are your thoughts on the best way to implement support for top level await in Blink?
Thanks,Joshua Litt
--
You received this message because you are subscribed to the Google Groups "module-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to module-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/module-dev/CAD7Fb3e2uYizFAy6Ebpv5%2BkFru3tbAjF%3DreV%2BwDPFF16JhExmg%40mail.gmail.com.
From my reading of this thread it sounds like there's some spec text available that could answer Kouhei's question at the top of the thread.Kouhei: Is spec text the only thing blocking you from working on this? It looks like there's a pending PR against the spec (linked by Myles above), which hopefully would answer your questions. Is this something you (or someone on your team) have bandwidth for this quarter?
Myles: when you say "littledan has offered to help if needed", what do you mean exactly? Is this about getting the spec PR landed? As for Web Platform Tests, those normally only come from Blink as part of an implementation, so from my perspective they're likely to block on Kouhei's answers to my questions above.Thanks,AdamOn Wed, Oct 23, 2019 at 3:33 PM 'Myles Borins' via module-dev <modul...@chromium.org> wrote:Am I blocking anything here?--On Tue, Oct 22, 2019 at 2:48 PM Joshua Litt <joshu...@google.com> wrote:friendly ping. Should we rope in littledan to land the necessary spec change? Is that all that is blocking implementation work? Do we have a bug for the blink side changes? I am happy to help out in anyway I can.On Thu, Oct 3, 2019 at 11:46 AM Myles Borins <myles...@google.com> wrote:More specifically this seems to be where the behavior is definedlittledan has offered to help if needed. Are we implementing WPT for this?On Thu, Oct 3, 2019 at 2:06 PM Myles Borins <myles...@google.com> wrote:And of course right after I send the email I get a response that seems to imply my intuition is wrong. There is an unlanded update to the HTML spec for Top-Level await integration that defines the behavior
You received this message because you are subscribed to the Google Groups "module-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to module-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/module-dev/CAD7Fb3e2uYizFAy6Ebpv5%2BkFru3tbAjF%3DreV%2BwDPFF16JhExmg%40mail.gmail.com.