JSCoverage
code coverage for JavaScript

Bug #40 - SyntaxError: missing ; before statement

Submitted by: Jean-Baptiste Quenot
Date submitted: 2011-10-28 14:30:27 UTC
Status: Open
---------------------------------------8<-------------------------------
mkdir test
cat >> test/test.js << EOF
      if (callback)
        $(".overlay form").submit(function() { callback(); return false; });
EOF
jscoverage test test-ins
---------------------------------------8<-------------------------------

Expected result:
Instrumented test.js in test-ins

Actual result:
jscoverage:test.js:2: SyntaxError: missing ; before statement
Submitted by: Ed
Date submitted: 2011-10-28 19:33:22 UTC
My Bash shell doesn't seem to work with that command line, but I copied the 2
lines of JavaScript code into a file and it seems to get instrumented without
errors.  What version of jscoverage are you using? (version number, operating
system?)

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