New issue
Advanced search Search tips

Issue 733619 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 658558
Owner:
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Feature



Sign in to add a comment

Feature: run console in an 'async' scope

Reported by mike.mac...@gmail.com, Jun 15 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Open console
2. Run:
  var x = await something();
3. Be told that 'await' is a bad keyword here

What is the expected behavior?
await should 'just work', saving developers from having to use .then() or callbacks.

What went wrong?
I know we're often told that devtools runs in the global scope, bit I've heard from a few places now that it's actually enclosed, and uses a little magic to put/use variables inside the global when they're created / evaluated. If that's the case, being able to use `= await()` would be super useful for me as a web developer, who wants to check the behavior of some kind of async operation.

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: n/a
OS Version: 10.0
Flash Version:
 
 issue 658558 
Labels: Needs-Milestone
Labels: -Type-Bug Type-Feature
Owner: l...@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 4 by l...@chromium.org, Jun 28 2017

Mergedinto: 658558
Status: Duplicate (was: Assigned)

Sign in to add a comment