New issue
Advanced search Search tips

Issue 863656 link

Starred by 2 users

Issue metadata

Status: Fixed
Merged: issue 862980
Owner:
Closed: Sep 25
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

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:
 
Labels: Needs-Triage-M67
Cc: vamshi.kommuri@chromium.org
Labels: Triaged-ET M-69 Target-69 FoundIn-69 OS-Mac OS-Windows
Status: Untriaged (was: Unconfirmed)
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.
Components: -Platform>DevTools Platform>DevTools>JavaScript
Owner: kozy@chromium.org
Status: Assigned (was: Untriaged)

Comment 4 Deleted

Status: Assigned (was: Duplicate)
Cc: dgozman@chromium.org kozy@chromium.org
 Issue 821673  has been merged into this issue.
Project Member

Comment 7 by bugdroid1@chromium.org, 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

Status: Fixed (was: Assigned)

Sign in to add a comment