Comment #1 on issue 1157 by mikesamuel: Linter warns on use of Boolean
expressions as conditionals
http://code.google.com/p/google-caja/issues/detail?id=1157
I fixed some of the side-effect checks and improved the error message in a
pending CL.
That should address this immediate issue. In the meantime, you can rewrite
this as
if (x) { x(); }
But I don't plan on allowing comma operators as expression statements,
since comma
can be mistaken for semicolon easily which makes for harder to review code.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings