Files
Nicolò RibaudoandGitHub d0ffdeb9f5 Rewrite transform-block-scoping plugin (#15200)
* Add test for `const` with `tdz`

* Rewrite block-scoping plugin

* Update block-scoping fixtures

* Update other fixtures

* Fix `let` shadowing variable read in a sibling scope

* Update fixtures

* Update Babel 8 fixtures

* Add minNodeVersion

* Fix block scoped vars shadowing globals

* Review by JLHwung

* minNodeVersion to class fields test
2022-12-14 19:38:57 +01:00

16 lines
275 B
JavaScript

var _excluded = ["foo"];
var _loop = function (foo) {
() => foo;
var [qux] = bar;
try {} catch (e) {
var quux = qux;
}
};
for (var _ref of {}) {
var {
foo
} = _ref,
bar = babelHelpers.objectWithoutPropertiesLoose(_ref, _excluded);
_loop(foo);
}