Open blakeembrey opened 9 years ago
This is similar to function declarations in the same scope for which istanbul has some crazy hacks to report "coverage" correctly. I think istanbul should not even consider function declarations and variable declarations that do not have an initializer. This is not trivial to fix without a major version upgrade since it is a change to coverage behavior.
Any variable initialization below
return
is marked as not run, even though the JavaScript runtime would have hoisted it. This code is being generated by a transpiler for JS, so it's unusual, but not incorrect.