mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Add wrong test * [babel 8] Update default `@babel/runtime` version
18 lines
515 B
JavaScript
18 lines
515 B
JavaScript
import _regeneratorAsync from "@babel/runtime/helpers/regeneratorAsync";
|
|
import _awaitAsyncGenerator from "@babel/runtime/helpers/awaitAsyncGenerator";
|
|
function f() {
|
|
var value;
|
|
return _regeneratorAsync(function (_context) {
|
|
while (1) switch (_context.n) {
|
|
case 0:
|
|
_context.n = 1;
|
|
return _awaitAsyncGenerator(Promise.resolve(1));
|
|
case 1:
|
|
value = _context.v;
|
|
console.log(value);
|
|
case 2:
|
|
return _context.a(2);
|
|
}
|
|
}, null, null, null, Promise);
|
|
}
|