New issue
Advanced search Search tips

Issue 843303 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

format tool breaks if source file contains syntax such as let a = { ... , b , c }

Reported by admb...@gmail.com, May 15 2018

Issue description

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

Steps to reproduce the problem:
1.) create a script file
2.) introduce syntax such as 

var b = { f1 : 1, f2 : 1, f3 : 1 };
var a = { ...b , f4 : 1 };

4.) add few spaces here and there
3.) hit "Format" button, nothing happens.

What is the expected behavior?
"Format" button indents code properly

What went wrong?
format tool breaks if source file contains syntax such as let a = { ... , b , c }

Did this work before? No 

Chrome version: 66.0.3359.139  Channel: n/a
OS Version: 10.0
Flash Version:
 
Labels: Needs-Triage-M66
Labels: Triaged-ET Needs-Feedback
Thanks for filing the issue!

@Reporter: Could you please provide sample test file/URL that reproduces the issue which helps us in further triaging the issue from TE end.

Thanks!

Comment 3 by admb...@gmail.com, May 16 2018

Sure,

https://raw.githubusercontent.com/gandonov/gandonov.github.io/master/formattest.js

I just tried, it seems to reproduce the issue. If you comment out line 3, format works.

Thanks,
-Denis
Project Member

Comment 4 by sheriffbot@chromium.org, May 16 2018

Cc: viswa.karala@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by caseq@chromium.org, May 16 2018

Components: -Platform>DevTools Platform>DevTools>Authoring
Owner: einbinder@chromium.org
Status: Assigned (was: Unconfirmed)

Sign in to add a comment