Closed Bug 1414726 Opened 7 years ago Closed 7 years ago

Implement top-level await in developer console

Categories

(DevTools :: Console, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1410820

People

(Reporter: arthur, Unassigned)

Details

It would be very helpful if we could use await in the developer console at top level. STR: 1. Open a web console 2. Enter `await Promise.resolve("hello");` Results: SyntaxError: await is only valid in async functions Expected "hello" is returned. (There would also need to be a way to interrupt a promise that never returns to avoid hanging the console.) See also similar chromium bug at https://bugs.chromium.org/p/chromium/issues/detail?id=658558
Hello, Thanks for reporting. I'm putting this as a duplicate of Bug 1410820 where we already started a conversation on how to implement this.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Aha, I didn't see that one. Thanks!
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.