* fix: should not remove let binding even it is wrapped in closure Fixes #10339 * fix: remove bindings defined in blockScope when wrapped in closure * Move test assertions to the top level to ensure that they run
8 lines
117 B
JavaScript
8 lines
117 B
JavaScript
for (const {foo, ...bar} of {}) {
|
|
() => foo;
|
|
const [qux] = bar;
|
|
try {} catch (e) {
|
|
const quux = qux;
|
|
}
|
|
}
|