Inspections-JS issue

Consider the following code:

var myObject = ;
delete myObject.theProperty;

The result is that myObject will only have someProperty, as theProperty
will get deleted.

Inspections-JS states "Expression statement is not assignment or call".

Thanks,
Amnon

4 comments

Hi,
Looks like better post this to Jira or Inspections-JS forum.
By the is it JS syntax to clear property?

Thanks,
Dmitry

0

What version of Inspection-JS are you using? This is a known issue, and was thought to be fixed in the most recent release.

For future reference, this sort of thing is better posted to either the Inspection-JS JIRA http://www.jetbrains.net/jira/secure/BrowseProject.jspa?id=10182 , or the Inspection-JS forum http://intellij.net/forums/forum.jsp?forum=66 .



Sixth and Red River Software
"Code with Grace and Verve"

0

Sixth and Red River Software wrote:

For future reference, this sort of thing is better posted to either
the Inspection-JS JIRA
http://www.jetbrains.net/jira/secure/BrowseProject.jspa?id=10182 , or
the Inspection-JS forum http://intellij.net/forums/forum.jsp?forum=66
.


It's funny, the response to Inspection-JS problems posted here is pretty
quick. While there are some issues posted on the forum, which have not
been responded to since January 6th. Which is better? ;)

Bas

0

Funnily enough I was just about to post the same thing! :)

0

Please sign in to leave a comment.