Invalid destructuring assignment: SyntaxError when it's not
Reported by
m...@boopathi.in,
Mar 14 2017
|
|||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 Steps to reproduce the problem: The following is not a syntax Error 0 < foo.bar([ ]) ? [a,b]=[] : [a,b]=[]; // Not a Syntax Error But when you add that one extra StringLiteral, it becomes a SyntaxError 0 < foo.bar(['']) ? [a,b]=[] : [a,b]=[]; // Syntax Error What is the expected behavior? The code parses and throws a Runtime Error What went wrong? Detected Syntax Error wrong Did this work before? No Chrome version: 56.0.2924.87 Channel: stable OS Version: OS X 10.12.3 Flash Version: Original Context: https://github.com/babel/babili/issues/476#issuecomment-286562722
,
Mar 15 2017
Tested on mac os 10.12.2 , windows 7 and ubuntu 14.04 using M57 #57.0.5987.98 and M59 #59.0.3041.0 and issue is reprodued. Issue is seen from M50 #50.0.2624.0 and till M49 behavior of issue is different and is a non-regression issue. Marking it as untraiged for further inputs on this. Attached screenshot of the difference in chrome milestones. Thanks!
,
Mar 19 2017
,
Mar 22 2017
Adamk@, is this as expected or a bug? Feel free to close this one with WontFix right away.
,
Mar 22 2017
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ranjitkan@chromium.org
, Mar 15 2017