commit
9d0a05ecde
5
packages/babel-core/test/fixtures/transformation/misc/regression-2892/actual.js
vendored
Normal file
5
packages/babel-core/test/fixtures/transformation/misc/regression-2892/actual.js
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
export default class Foo {
|
||||
async bar() {
|
||||
const baz = 0;
|
||||
}
|
||||
}
|
||||
19
packages/babel-core/test/fixtures/transformation/misc/regression-2892/expected.js
vendored
Normal file
19
packages/babel-core/test/fixtures/transformation/misc/regression-2892/expected.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
export default class Foo {
|
||||
bar() {
|
||||
var _this = this;
|
||||
|
||||
return babelHelpers.asyncToGenerator(regeneratorRuntime.mark(function _callee() {
|
||||
var baz;
|
||||
return regeneratorRuntime.wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
baz = 0;
|
||||
|
||||
case 1:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee, _this);
|
||||
}))();
|
||||
}
|
||||
}
|
||||
3
packages/babel-core/test/fixtures/transformation/misc/regression-2892/options.json
vendored
Normal file
3
packages/babel-core/test/fixtures/transformation/misc/regression-2892/options.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["external-helpers", "transform-async-to-generator", "transform-regenerator"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user