JSCoverage
code coverage for JavaScript

Bug #56 - Error parsing silverlight.js

Submitted by: Anonymous
Date submitted: 2013-09-30 17:35:53 UTC
Status: Open
I was trying out JSCoverage using Jasmine Coverage 
(https://github.com/firstbanco/jasmine-coverage) and got a parsing error when 
JSCoverage tried to instrument silverlight.js (in my public directory in a Rails 
project), apparently because of the series of forward slashes at the beginning of 
the unminimized version of the document. I replaced it with the minimized version 
and it worked, but got stuck on another file (jquery.timers-1.1.2.js). I'm not 
sure to what degree this is a result of Jasmine Coverage... seems like I could 
work around it using just JSCoverage since I don't actually need to analyze those 
files, but FYI.

A bit of Jasmine Coverage's print out:

Instrumenting JS files...
Instrumenting file ZeroClipboard.js
Copying file zeroclipboard/ZeroClipboard.swf
Instrumenting file zeroclipboard/ZeroClipboard.js
[several dozen file instrumentations]
Instrumenting file silverlight.js
jscoverage:silverlight.js:1: SyntaxError: illegal character
jscoverage: parse error in file silverlight.js
jscoverage failed with status 'false'. Is jscoverage on your path?

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