mwarrenus / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

Array destructuring with multiple ignored elements at the end breaks js2-mode completely #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(JavaScript 1.8 code)

let [foo,,] = [1, 2, 3];

What is the expected output? What do you see instead?
js2-mode claims to support only up to JS 1.7, so it's fine if this isn't
properly understood, but this breaks the parser completely. There's no
syntax highlighting at all. The messages buffer contains
"js2-parse-primary-expr: Wrong type argument: arrayp, nil".

What version of the product are you using? On what operating system?
js2-20090723b.el/Emacs 23.1 on Windows 7.

Original issue reported on code.google.com by sid1...@gmail.com on 23 Dec 2009 at 6:16

GoogleCodeExporter commented 9 years ago
To clarify: "There's no syntax highlighting at all" in the entire file.

Original comment by sid1...@gmail.com on 23 Dec 2009 at 6:19