mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* 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
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
var _asyncToGenerator = require("<CWD>/packages/babel-runtime/helpers/asyncToGenerator.js");
|
|
function test() {
|
|
return _test.apply(this, arguments);
|
|
}
|
|
function _test() {
|
|
_test = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
console.log('test');
|
|
case 1:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return _test.apply(this, arguments);
|
|
}
|
|
function main() {
|
|
return _main.apply(this, arguments);
|
|
}
|
|
function _main() {
|
|
_main = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
case 0:
|
|
_context2.t0 = console;
|
|
_context2.next = 3;
|
|
return test();
|
|
case 3:
|
|
_context2.t1 = _context2.sent;
|
|
_context2.t0.log.call(_context2.t0, _context2.t1);
|
|
case 5:
|
|
case "end":
|
|
return _context2.stop();
|
|
}
|
|
}, _callee2);
|
|
}));
|
|
return _main.apply(this, arguments);
|
|
}
|
|
main();
|