#15751 closed task (invalid)
dojox/date unreachable code
Reported by: | bill | Owned by: | Adam Peller |
---|---|---|---|
Priority: | low | Milestone: | 1.11 |
Component: | Date | Version: | 1.8.0rc1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description (last modified by )
Should get rid of warning in hebrew.js
/workspace/trunk-release/dojo/dojox/date/hebrew.js:219: WARNING - Suspicious code. This code lacks side-effects. Is there a bug? for (i; i < e; i++){ ^ 0 error(s), 1 warning(s)
Similarly for buddhist:
/workspace/trunk-release/dojo/dojox/date/buddhist.js:211: WARNING - Suspicious code. This code lacks side-effects. Is there a bug? for (i; i < e; i++){ ^ 0 error(s), 1 warning(s)
And islamic:
/workspace/trunk-release/dojo/dojox/date/islamic.js:219: WARNING - Suspicious code. This code lacks side-effects. Is there a bug? for (i; i < e; i++){ ^ 0 error(s), 1 warning(s) Done (compile time:0.061s)
Change History (4)
comment:1 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Summary: | dojox/date/hebrew build warning → dojox/date/hebrew, dojox/date/buddhist unreachable code |
Version: | 1.7.3 → 1.8.0rc1 |
comment:2 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Summary: | dojox/date/hebrew, dojox/date/buddhist unreachable code → dojox/date unreachable code |
comment:3 Changed 6 years ago by
Milestone: | tbd → 1.11 |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This isn't a valid warning, as the initial state of i is defined a few lines prior, instead of within the loop.