Unexpected identifier when using top-level await along with spread in DevTools console
Reported by
rocca.jo...@gmail.com,
Jul 14
|
|||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Steps to reproduce the problem:
Open console and paste this in to confirm it works fine:
(async function() {
let e = [...(await fetch("https://i.imgur.com/z4d4kWk.jpg", { method: 'HEAD' })).headers.entries()];
console.log(e);
})();
Now try executing this:
[...(await fetch("https://i.imgur.com/z4d4kWk.jpg", { method: 'HEAD' })).headers.entries()]
What is the expected behavior?
What went wrong?
I get `Uncaught SyntaxError: Unexpected identifier` when I execute the second bit of example code.
Did this work before? N/A
Chrome version: 67.0.3396.99 Channel: stable
OS Version:
Flash Version:
,
Jul 19
Thanks for filing the issue! Able to reproduce the issue on reported chrome version 67.0.3396.99 and on the latest canary 69.0.3496.0 using Ubuntu 14.04, Windows 10 and Mac 10.13.1. As the issue is seen from M60(60.0.3112.0) considering it as Non-Regression and marking it as Untriaged.
,
Jul 26
,
Sep 24
,
Sep 25
,
Sep 25
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/57bdd881a25314439a39030c651d90fb65c877cc commit 57bdd881a25314439a39030c651d90fb65c877cc Author: Alexey Kozyatinskiy <kozyatinskiy@chromium.org> Date: Tue Sep 25 22:23:23 2018 DevTools: roll acorn to 6.0.1 New acorn support couple nice ES features, e.g., - for await (...) loop, - spread operator. R=lushnikov@chromium.org Bug: chromium:863656 Change-Id: I057ebf01fcc220ee1e98707343df457358f248f6 Reviewed-on: https://chromium-review.googlesource.com/1244600 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Andrey Lushnikov <lushnikov@chromium.org> Cr-Commit-Position: refs/heads/master@{#594126} [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/WebKit/LayoutTests/http/tests/devtools/unit/preprocess-top-level-awaits-expected.txt [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/WebKit/LayoutTests/http/tests/devtools/unit/preprocess-top-level-awaits.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/externs.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/formatter_worker/ESTreeWalker.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/formatter_worker/FormatterWorker.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/formatter_worker/JavaScriptOutline.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/formatter_worker/acorn/acorn.js [modify] https://crrev.com/57bdd881a25314439a39030c651d90fb65c877cc/third_party/blink/renderer/devtools/front_end/formatter_worker/acorn/acorn_loose.js
,
Sep 25
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by viswa.karala@chromium.org
, Jul 17