The JavaScript:
[a,b] = [b,a];
The Eclipse error:
The left-hand side of an assignment must be a variable
Is there some plugin or something I need in order to get Eclipse to correctly inspect JavaScript?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s only valid in Mozilla’s JavaScript implementation, found in Firefox for example.
Technically this is actual “JavaScript” according to a more technical definition of the word, but it’s currently not valid “ECMAScript”, which is usually what people are talking about when they use the word “JavaScript”.