You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which throws this error: Cannot use keyword 'await' outside an async function (Note that you need plugins to import files that are not JavaScript) because the IIFE is not async even tho this code is in an async function.
IMO this does not need an IIFE at all. Using a block should be enough:
It is IIFE because the expression returns the assigned value.
letc=({ a,b }=awaittest());
Though, if there is a mechanism preventing variable names collision, I doubt there is need in wrapping with IIFE or a block, and tmp_1 can be nulled to prevent possible leaks.
Another solution would by pass the assigned value as IIFE's param:
Describe the bug
If
a
is a$state()
gets compiled to
which throws this error:
Cannot use keyword 'await' outside an async function (Note that you need plugins to import files that are not JavaScript)
because the IIFE is not async even tho this code is in an async function.IMO this does not need an IIFE at all. Using a block should be enough:
Reproduction
REPL
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: