On Tue, Jan 12, 2021 at 2:25 PM 'Andreas Haas' via v8-users
<v8-users@googlegroups.com> wrote:
>
> +v8-users
>
> 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
>>>>
>>>> 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 pointed me to a public documentation.

new Promise((res, rej) => {}) won't ever resolve. It's not that you
can't await it (there are several ways of doing that) but it's never
going to complete.

-- 
-- 
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/CAHQurc9iABFjfs15b7b2fUFrnJJ1VYm3iV-zzwaOdQM248cdWA%40mail.gmail.com.

Reply via email to