-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6c2f78
commit 68abb51
Showing
59 changed files
with
146 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...posal-explicit-resource-management/test/fixtures/integration/async-to-generator/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/babel-plugin-proposal-function-sent/test/fixtures/function-sent/basic/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...bel-plugin-proposal-function-sent/test/fixtures/generator-kinds/async-generator/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ugin-proposal-function-sent/test/fixtures/generator-kinds/export-default-named/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/babel-plugin-proposal-function-sent/test/fixtures/generator-kinds/export/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...el-plugin-proposal-function-sent/test/fixtures/generator-kinds/expression-named/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ges/babel-plugin-proposal-function-sent/test/fixtures/generator-kinds/statement/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-transform-async-generator-functions/test/fixtures/async-generators/declaration/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n-transform-async-generator-functions/test/fixtures/async-generators/expression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...m-async-generator-functions/test/fixtures/async-generators/transform-class-keys/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...orm-async-generator-functions/test/fixtures/async-generators/yield-star-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...n-transform-async-generator-functions/test/fixtures/async-generators/yield-star/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ugin-transform-async-generator-functions/test/fixtures/for-await/async-function/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...gin-transform-async-generator-functions/test/fixtures/for-await/async-generator/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ync-generator-functions/test/fixtures/for-await/create-async-from-sync-iterator/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...lugin-transform-async-generator-functions/test/fixtures/for-await/destructuring/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-transform-async-generator-functions/test/fixtures/nested/arrows-in-declaration/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...plugin-transform-async-generator-functions/test/fixtures/nested/async-in-params/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...gin-transform-async-generator-functions/test/fixtures/nested/generator-in-async/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ator-functions/test/fixtures/yield-star/create-async-from-sync-iterator-babel-7/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var _ref; | ||
var _fn; | ||
function fn() { | ||
return (_ref = _ref || babelHelpers.wrapAsyncGenerator(function* () { | ||
return (_fn = _fn || babelHelpers.wrapAsyncGenerator(function* () { | ||
yield* babelHelpers.asyncGeneratorDelegate(babelHelpers.asyncIterator([Promise.resolve("ok")]), babelHelpers.awaitAsyncGenerator); // CreateAsyncFromSyncIterator | ||
})).apply(this, arguments); | ||
} |
4 changes: 2 additions & 2 deletions
4
...nc-generator-functions/test/fixtures/yield-star/create-async-from-sync-iterator/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var _ref; | ||
var _fn; | ||
function fn() { | ||
return (_ref = _ref || babelHelpers.wrapAsyncGenerator(function* () { | ||
return (_fn = _fn || babelHelpers.wrapAsyncGenerator(function* () { | ||
yield* babelHelpers.asyncGeneratorDelegate(babelHelpers.asyncIterator([Promise.resolve("ok")])); // CreateAsyncFromSyncIterator | ||
})).apply(this, arguments); | ||
} |
4 changes: 2 additions & 2 deletions
4
...orm-async-to-generator/test/fixtures/async-to-generator/async-default-arguments/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...plugin-transform-async-to-generator/test/fixtures/async-to-generator/async-iife/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
...nsform-async-to-generator/test/fixtures/async-to-generator/deeply-nested-asyncs/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ugin-transform-async-to-generator/test/fixtures/async-to-generator/double-await/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var _ref; | ||
var _fn; | ||
function fn() { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* () { | ||
return (_fn = _fn || babelHelpers.asyncToGenerator(function* () { | ||
yield yield 1; | ||
})).apply(this, arguments); | ||
} |
14 changes: 7 additions & 7 deletions
14
...in-transform-async-to-generator/test/fixtures/async-to-generator/function-arity/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
var _ref, _ref2, _ref3, _ref4, _ref5, _ref6; | ||
var _one, _two, _three, _four, _five, _six; | ||
function one(_x) { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* (a, b = 1) {})).apply(this, arguments); | ||
return (_one = _one || babelHelpers.asyncToGenerator(function* (a, b = 1) {})).apply(this, arguments); | ||
} | ||
function two(_x2, _x3) { | ||
return (_ref2 = _ref2 || babelHelpers.asyncToGenerator(function* (a, b, ...c) {})).apply(this, arguments); | ||
return (_two = _two || babelHelpers.asyncToGenerator(function* (a, b, ...c) {})).apply(this, arguments); | ||
} | ||
function three(_x4) { | ||
return (_ref3 = _ref3 || babelHelpers.asyncToGenerator(function* (a, b = 1, c, d = 3) {})).apply(this, arguments); | ||
return (_three = _three || babelHelpers.asyncToGenerator(function* (a, b = 1, c, d = 3) {})).apply(this, arguments); | ||
} | ||
function four(_x5) { | ||
return (_ref4 = _ref4 || babelHelpers.asyncToGenerator(function* (a, b = 1, c, ...d) {})).apply(this, arguments); | ||
return (_four = _four || babelHelpers.asyncToGenerator(function* (a, b = 1, c, ...d) {})).apply(this, arguments); | ||
} | ||
function five(_x6, _x7) { | ||
return (_ref5 = _ref5 || babelHelpers.asyncToGenerator(function* (a, { | ||
return (_five = _five || babelHelpers.asyncToGenerator(function* (a, { | ||
b | ||
}) {})).apply(this, arguments); | ||
} | ||
function six(_x8) { | ||
return (_ref6 = _ref6 || babelHelpers.asyncToGenerator(function* (a, { | ||
return (_six = _six || babelHelpers.asyncToGenerator(function* (a, { | ||
b | ||
} = {}) {})).apply(this, arguments); | ||
} |
4 changes: 2 additions & 2 deletions
4
...-transform-async-to-generator/test/fixtures/async-to-generator/named-expression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var _ref; | ||
var _bar; | ||
var foo = function bar() { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* () { | ||
return (_bar = _bar || babelHelpers.asyncToGenerator(function* () { | ||
console.log(bar); | ||
})).apply(this, arguments); | ||
}; |
4 changes: 2 additions & 2 deletions
4
...plugin-transform-async-to-generator/test/fixtures/async-to-generator/parameters/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var _ref; | ||
var _foo; | ||
function foo(_x) { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* (bar) {})).apply(this, arguments); | ||
return (_foo = _foo || babelHelpers.asyncToGenerator(function* (bar) {})).apply(this, arguments); | ||
} |
4 changes: 2 additions & 2 deletions
4
...rm-async-to-generator/test/fixtures/async-to-generator/shadowed-promise-import/output.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var _ref; | ||
var _foo; | ||
import Promise from 'somewhere'; | ||
function foo() { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* () { | ||
return (_foo = _foo || babelHelpers.asyncToGenerator(function* () { | ||
yield Promise.resolve(); | ||
})).apply(this, arguments); | ||
} |
8 changes: 4 additions & 4 deletions
8
...orm-async-to-generator/test/fixtures/async-to-generator/shadowed-promise-nested/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-transform-async-to-generator/test/fixtures/async-to-generator/shadowed-promise/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...-plugin-transform-async-to-generator/test/fixtures/async-to-generator/statement/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
var _ref; | ||
var _foo; | ||
function foo() { | ||
return (_ref = _ref || babelHelpers.asyncToGenerator(function* () { | ||
return (_foo = _foo || babelHelpers.asyncToGenerator(function* () { | ||
var wat = yield bar(); | ||
})).apply(this, arguments); | ||
} |
4 changes: 2 additions & 2 deletions
4
...transform-async-to-generator/test/fixtures/bluebird-coroutines/named-expression/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
var _coroutine = require("bluebird").coroutine; | ||
var _ref; | ||
var _bar; | ||
var foo = function bar() { | ||
return (_ref = _ref || _coroutine(function* () { | ||
return (_bar = _bar || _coroutine(function* () { | ||
console.log(bar); | ||
})).apply(this, arguments); | ||
}; |
Oops, something went wrong.