mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* 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
11 lines
146 B
JavaScript
11 lines
146 B
JavaScript
expect(
|
|
do {
|
|
var bar = "foo";
|
|
if (!bar) throw new Error(
|
|
"unreachable"
|
|
)
|
|
bar;
|
|
}
|
|
).toBe("foo");
|
|
expect(bar).toBe("foo");
|