JSCoverage
code coverage for JavaScript

Bug #41 - SyntaxError: missing ) in parenthetical

Submitted by: Jean-Baptiste Quenot
Date submitted: 2011-10-28 14:39:08 UTC
Status: Open
---------------------------------------8<-------------------------------
mkdir test
cat >> test/test.js << EOF
    if ((parseInt($(this).find("type").text()) == 4 && 
($(this).find("country").text() == "US" || $(this).find("country").text() == 
"RU"))||
        (parseInt($(this).find("type").text()) == 6)) {
      // nothing
    }
EOF
jscoverage test test-ins
---------------------------------------8<-------------------------------

Expected result:
Instrumented test.js in test-ins

Actual result:
jscoverage:test.js:1: SyntaxError: missing ) in parenthetical
Submitted by: Ed
Date submitted: 2011-10-28 19:35:00 UTC
See http://siliconforks.com/jscoverage/bugs/40

Add a comment

Your name:
Your email address (optional - will never be displayed):
Comment:
Attachment (optional - maximum 64 KiB):
Copyright © 2008 Silicon Forks siliconforks.com
siliconforks@siliconforks.com