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:
,
May 16 2018
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!
,
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
,
May 16 2018
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
,
May 16 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, May 16 2018