-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump flow-parser from 0.121.0 to 0.122.0 (#7935)
* Bump flow-parser from 0.121.0 to 0.122.0 Bumps [flow-parser](https://github.com/facebook/flow) from 0.121.0 to 0.122.0. - [Release notes](https://github.com/facebook/flow/releases) - [Changelog](https://github.com/facebook/flow/blob/master/Changelog.md) - [Commits](facebook/flow@v0.121.0...v0.122.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Remove ForAwaitStatement * Remove RestProperty * Add tests for for-await * Fix snapshots Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
- Loading branch information
1 parent
877874e
commit 46fc3de
Showing
7 changed files
with
73 additions
and
20 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`for-await.js 1`] = ` | ||
====================================options===================================== | ||
parsers: ["babel", "flow", "typescript"] | ||
printWidth: 80 | ||
| printWidth | ||
=====================================input====================================== | ||
async function foo() { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (num of asyncGeneratorFunc()) { | ||
console.log(num); | ||
} | ||
} | ||
(async () => { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (const x of delegate_yield()) { | ||
x; | ||
} | ||
})(); | ||
=====================================output===================================== | ||
async function foo() { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (num of asyncGeneratorFunc()) { | ||
console.log(num); | ||
} | ||
} | ||
(async () => { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (const x of delegate_yield()) { | ||
x; | ||
} | ||
})(); | ||
================================================================================ | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
async function foo() { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (num of asyncGeneratorFunc()) { | ||
console.log(num); | ||
} | ||
} | ||
|
||
(async () => { | ||
for await (num of asyncIterable) { | ||
console.log(num); | ||
} | ||
for await (const x of delegate_yield()) { | ||
x; | ||
} | ||
})(); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
run_spec(__dirname, ["babel", "flow", "typescript"]); |
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