New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 650160 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Async functions print strangely in devtools console

Project Member Reported by littledan@chromium.org, Sep 26 2016

Issue description

> async function foo() {}
< undefined
> foo
< function async function foo() {}

Notice the extra 'function' at the beginning of the output of the second line. The output should be, "async function foo() {}".
 
Status: Started (was: Assigned)
https://codereview.chromium.org/2369243004/
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 28 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/79415b9b7d748af97fc062e9623e5130f1e38db7

commit 79415b9b7d748af97fc062e9623e5130f1e38db7
Author: kozyatinskiy <kozyatinskiy@chromium.org>
Date: Wed Sep 28 22:11:16 2016

[DevTools] Improved function preview everywhere

async function, function* and regular function is supported:
- in console.log;
- in console.dir;
- in object popover on pause;
- as property of object.

BUG= 650160 
R=dgozman@chromium.org,lushnikov@chromium.org

Review-Url: https://codereview.chromium.org/2369243004
Cr-Commit-Position: refs/heads/master@{#421655}

[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-dir-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-format-expected.txt
[add] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-functions-expected.txt
[add] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-functions.html
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-native-function-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/console/console-save-to-temp-var-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/debugger-save-to-temp-var-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/show-function-definition-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/LayoutTests/inspector/sources/debugger/properties-special-expected.txt
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/Source/devtools/front_end/components/ObjectPropertiesSection.js
[modify] https://crrev.com/79415b9b7d748af97fc062e9623e5130f1e38db7/third_party/WebKit/Source/devtools/front_end/components/objectValue.css

Status: Fixed (was: Started)
I checked async arrow functions and it works good.

Sign in to add a comment