javascript: fix elimination of conditions #1192
Merge pull request #1198 from raichoo/javascript

javascript: fix elimination of conditions #1192