Closed
Bug 1798456
Opened 3 years ago
Closed 3 years ago
await not allowed inside blocks in console
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1694518
People
(Reporter: gtmnayan, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Steps to reproduce:
Paste the following into the console and run it
{
await 0;
}
Actual results:
Uncaught SyntaxError: await is only valid in async functions, async generators and modules
Expected results:
Since top level await works in the console without braces
eg:
await 0;
there shouldn't be any error for TLA inside blocks
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: Untriaged → Console
Product: Firefox → DevTools
Updated•3 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Duplicate of bug: 1694518
Flags: needinfo?(nchevobbe)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•