Rename all proposal plugins to -proposal- from -transform- (#6570)

This commit is contained in:
Henry Zhu
2017-10-27 15:26:38 -04:00
committed by GitHub
parent a94aa54230
commit c41abd79a1
599 changed files with 372 additions and 372 deletions

View File

@@ -0,0 +1,11 @@
async function* g() {
() => this;
function f() {
() => this;
}
async () => {
this;
await 1;
}
await 1;
}

View File

@@ -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);
};
})();

View File

@@ -0,0 +1,4 @@
async function* g(x = async function() { await 1 }) {
await 2;
yield 3;
}

View File

@@ -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);
};
})();

View File

@@ -0,0 +1,7 @@
async function f() {
await 1;
async function* g() {
await 2;
yield 3;
}
}

View File

@@ -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);
};
})();

View File

@@ -0,0 +1,7 @@
{
"plugins": [
"external-helpers",
"transform-async-to-generator",
"proposal-async-generator-functions"
]
}