Files
Huáng JùnliàngandGitHub 0ea1932227 fix: hoist variable declaration within do block (#13122)
* fix: hoist variable declaration within do block

* test: add input for variable-declaration-start

* test: actually write a test for this issue

* make prettier happy
2021-06-03 21:39:19 -04:00

8 lines
93 B
JavaScript

var x = do {
var bar = "foo";
if (!bar) throw new Error(
"unreachable"
)
bar;
};