Priority
Normal
Type
Bug 
State
Fixed 
Assignee
Maxim Mossienko 
Subsystem
JavaScript 
Affected versions
Fixed in
Fixed in build
Next build 
Build
7590
Fixed in build
8256
Severity
0
  • Submitted by   rbondi@gmail.com
    22 months ago (14 Mar 2008 22:39)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:58)
  • Jira: IDEA-43207
    (history, comments)

IDEA-43207

Valid javascript flagged as potentially invalid

0
Added by <no user>
15 Sep 2009
Picture 3.png   (37 KB)

As shown in the attached screenshot, javascript of the form

x && y

is being shown as likely invalid.

But if the right-most expression is a function, this is just a way to avoid writing an "if" statement for the last function, and is valid in javascript.

So for that case at least, this shouldn't be flagged as an error.

Environment: OSX 10.5

Issue was resolved
Comments (0)
 
History (1)
 
Links
 
Issue has no comments