JSCoverage
code coverage for JavaScript

Bug #13 - Handling of yield keyword less than ideal

Submitted by: Duncan Loveday
Date submitted: 2009-06-11 17:50:54 UTC
Status: Closed
Two issues

(1) jscoverage rejects a statement of the form "yield value" - workaround is to
write "yield(values)" instead.

(2) jscoverage changed this statement

        setTimeout((yield (CONTINUATION)), millis);

to this

  setTimeout(yield(CONTINUATION), millis);

losing the brackets around arg1. This was then reported as invalid in firefox.
Submitted by: Ed
Date submitted: 2009-06-11 23:19:03 UTC
Are you using the command-line option --js-version=1.7 (or 1.8)?
Submitted by: Ed
Date submitted: 2010-04-26 01:38:42 UTC
As I believe the "yield" keyword is handled correctly with --js-version=1.7 or
1.8, I am closing this bug.  If there are any further problems please submit a
new bug.

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