-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrument issue #8
Comments
Strange - I might need more information. Feeding in: var Count = base + Math.round( (Math.random() - 0.5) * base / 5);
supported = {'a':3.0,'b':7,'c':4,'d':2}; ...I get the following out //Header code
_$jscoverage['/target/bug.js'][1]++;
var Count = base + Math.round((Math.random() - 0.5) * base / 5);
_$jscoverage['/target/bug.js'][2]++;
supported = {'a': 3.0, 'b': 7, 'c': 4, 'd': 2}; |
Got the error info with the following code: (function(testjs){
})(testjs); Another thing, does the JSCover suport option "--verbose"? Sometime it will help user on quick find the issue file or line. |
Thanks - I can now reproduce the error. It's most likely an issue with Rhino, my patch or both. I'll start investigating.
No, however any errors during instrumentation are logged to errors.log in the report directory. |
I've patched Rhino, please try version 0.0.9 Rhino details are here https://bugzilla.mozilla.org/show_bug.cgi?id=800616 |
Hi, Exception in thread "main" org.mozilla.javascript.EvaluatorException: syntax err What's the matter? Please help me to locate the issue. Thanks. |
Can you confirm if your hexadecimal issue is solved?
This looks like a separate error. Can you open a new issue? In the meantime, this looks like Rhino is unable to parse your JavaScript. Check your JavaScript language level matches your source (see the |
The hexadecimal issue is solved with build 0.0.9. Thanks |
Hi,
Use the new build to instrument code, find some issue after instrumented code:
before :
var Count = base + Math.round( (Math.random() - 0.5) * base / 5);
after:
var Count = base + Math.round((Math.random() - 0x0.5) * base / 0x5);
also:
supported = {'a':3.0,'b:7,'c':4,'d':2};
supported= {'a': 0x3.0, 'b': 0x7, 'c': 0x4, 'd': 0x2};
There has some error with instrument decimals, please help check on it.
Thanks in advance!
The text was updated successfully, but these errors were encountered: