Inspection-JS bug
Consider the following greatly simplified code:
function f1() {
function f2() {
return null;
}
}
Inspection-JS claims that f1 has inconsistent return points.
If I remove the f2 declaration the warning disappears.
I think this is a bug.
Amnon
请先登录再写评论。
Another interesting case:
function f() {
with (this) {
try {
return null;
} catch (x) {
return null;
}
}
}
Same claim regarding f.
If I remove the "with(this)" the warning goes away.
These bugs, and some others related to nested functions, are fixed in build 1.0.3, currently available via the Plugin Manager.
Sixth and Red River Software
"Code with Grace and Verve"