Closed
Bug 1410822
Opened 8 years ago
Closed 8 years ago
Support `await` in the console
Categories
(DevTools :: Console, defect)
DevTools
Console
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1410820
People
(Reporter: julienw, Unassigned)
Details
(Whiteboard: [parity-Chrome])
STR:
Use the following input:
foo = async () => 42
// => function foo()
foo()
// => Promise { <state>: "fulfilled", <value>: 42 }
await foo()
// => SyntaxError: await is only valid in async functions and async generators
The last line should return `42` instead.
Note this is working in Chrome.
Also, in Chrome, the first line returns `async function foo()` which is nice. But this is less of a problem.
| Reporter | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•