es6-features
es6-features copied to clipboard
Destructuring Assignment/Array Matching sample does not work as expected on the 'reduced' version
In the case of:
var list = [ 1, 2, 3 ]
var [ a, , b ] = list
[ b, a ] = [ a, b ]
list[ b, a ]
is interpreted as an array expression. http://astexplorer.net/ was useful to troubleshoot it.
Hmmmm... correct, yes. But I cannot do anything here as the reduced version is automatically generated from the semicolon-based source.