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

35 lines
855 B
JavaScript

var _x$y$a$b = {
x: 1,
y: 2,
a: 3,
b: 4
},
x = _x$y$a$b.x,
y = _x$y$a$b.y,
z = babelHelpers.objectWithoutProperties(_x$y$a$b, ["x", "y"]);
var n = babelHelpers.objectSpread2({
x: x,
y: y
}, z);
function agf() {
return _agf.apply(this, arguments);
}
function _agf() {
_agf = babelHelpers.wrapAsyncGenerator( /*#__PURE__*/babelHelpers.regeneratorRuntime().mark(function _callee() {
return babelHelpers.regeneratorRuntime().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return babelHelpers.awaitAsyncGenerator(1);
case 2:
_context.next = 4;
return 2;
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return _agf.apply(this, arguments);
}