+v8-users <v8-users@googlegroups.com> On Tue, Jan 12, 2021 at 2:23 PM Andreas Haas <ah...@google.com> wrote:
> Hi All, > > We were able to minimize the issue further. The problem is that the result > of the script is a promise. Already the script > > new Promise((res, rej) => {}); > > hangs (thanks Camillo). The problem could be a missing MicroTasksScope, > but we still have to verify that. > > Cheers, Andreas > > On Tue, Jan 12, 2021 at 8:25 AM Marja Hölttä <ma...@google.com> wrote: > >> Hi, >> >> Top-level await only works for modules; assuming your scripts are not >> modules, so that's not applicable for you. >> >> Didn't ahaas@ implement an API for checking whether there's a pending >> task, so that you could spin the event loop while there's one? >> >> >> On Mon, Jan 11, 2021 at 5:30 PM Maitri Shastri <maitrishas...@google.com> >> wrote: >> >>> +V8 Google3 <v8-goog...@google.com> >>> >>> On Mon, Jan 11, 2021 at 9:59 PM Maitri Shastri <maitrishas...@google.com> >>> wrote: >>> >>>> Hi All, >>>> Apps Script (script.google.com) uses Chrome V8 execution engine. >>>> Recently we encountered a bug (http://b/176740430) where the user >>>> called an async function directly and the script timed out. Is it possible >>>> as the embedder to call an async function and await the result? >>>> Executed it in chrome browser - and the linked snippet didnt time out >>>> there. +Andreas Haas <ah...@google.com> pointed me to a public >>>> documentation. >>>> >>> >> >> -- >> >> >> Google Germany GmbH >> >> Erika-Mann-Straße 33 >> >> 80636 München >> >> Geschäftsführer: Paul Manicle, Halimah DeLaine Prado >> >> Registergericht und -nummer: Hamburg, HRB 86891 >> >> Sitz der Gesellschaft: Hamburg >> >> Diese E-Mail ist vertraulich. Falls sie diese fälschlicherweise erhalten >> haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, >> löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, >> dass die E-Mail an die falsche Person gesendet wurde. >> >> >> >> This e-mail is confidential. If you received this communication by >> mistake, please don't forward it to anyone else, please erase all copies >> and attachments, and please let me know that it has gone to the wrong >> person. >> >> -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/CAELSTvfMRJgMCbGL%3DJKYKoYa2UomHhXO%3D3XcQD%3DgtAXwNBvE5Q%40mail.gmail.com.