> 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() {}".
https://codereview.chromium.org/2369243004/
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
I checked async arrow functions and it works good.
Comment 1 by kozyatinskiy@chromium.org
, Sep 28 2016