Rename all proposal plugins to -proposal- from -transform- (#6570)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
async function* g() {
|
||||
() => this;
|
||||
function f() {
|
||||
() => this;
|
||||
}
|
||||
async () => {
|
||||
this;
|
||||
await 1;
|
||||
}
|
||||
await 1;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
let g = (() => {
|
||||
var _ref = babelHelpers.wrapAsyncGenerator(function* () {
|
||||
var _this = this;
|
||||
|
||||
() => this;
|
||||
|
||||
function f() {
|
||||
() => this;
|
||||
}
|
||||
|
||||
babelHelpers.asyncToGenerator(function* () {
|
||||
_this;
|
||||
yield 1;
|
||||
});
|
||||
yield babelHelpers.awaitAsyncGenerator(1);
|
||||
});
|
||||
|
||||
return function g() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,4 @@
|
||||
async function* g(x = async function() { await 1 }) {
|
||||
await 2;
|
||||
yield 3;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
let g = (() => {
|
||||
var _ref = babelHelpers.wrapAsyncGenerator(function* (x = babelHelpers.asyncToGenerator(function* () {
|
||||
yield 1;
|
||||
})) {
|
||||
yield babelHelpers.awaitAsyncGenerator(2);
|
||||
yield 3;
|
||||
});
|
||||
|
||||
return function g() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
@@ -0,0 +1,7 @@
|
||||
async function f() {
|
||||
await 1;
|
||||
async function* g() {
|
||||
await 2;
|
||||
yield 3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
let f = (() => {
|
||||
var _ref = babelHelpers.asyncToGenerator(function* () {
|
||||
let g = (() => {
|
||||
var _ref2 = babelHelpers.wrapAsyncGenerator(function* () {
|
||||
yield babelHelpers.awaitAsyncGenerator(2);
|
||||
yield 3;
|
||||
});
|
||||
|
||||
return function g() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
|
||||
yield 1;
|
||||
});
|
||||
|
||||
return function f() {
|
||||
return _ref.apply(this, arguments);
|
||||
};
|
||||
})();
|
||||
7
packages/babel-plugin-proposal-async-generator-functions/test/fixtures/nested/options.json
vendored
Normal file
7
packages/babel-plugin-proposal-async-generator-functions/test/fixtures/nested/options.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"plugins": [
|
||||
"external-helpers",
|
||||
"transform-async-to-generator",
|
||||
"proposal-async-generator-functions"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user