[wp-trac] [WordPress Trac] #28236: JSHint `onevar` arg is being deprecated and dropped
WordPress Trac
noreply at wordpress.org
Wed May 14 18:21:16 UTC 2014
#28236: JSHint `onevar` arg is being deprecated and dropped
------------------------------+-----------------------------
Reporter: georgestephanis | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: javascript
------------------------------+-----------------------------
Comment (by azaozz):
Replying to [comment:6 scott.gonzalez]:
OK, expanded example:
{{{
a = 1;
function test() {
var b = 2;
// more code
if ( a === 1 ) {
// can't do that, a is unreachable
}
var c = 3;
// more code
var a = 4;
// more code
}
}}}
It's somewhat comparable to the "Yoda" conditionals, etc. Agree this is
very rare, but not impossible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28236#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list