forked from babel/babel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring
pipelineOperator
flag in line with minimal
The minimal proposal requires parentheses around arrow functions and bans await from the pipeline. The `fsharpPipeline` flag will be responsible for enabling the await-in-pipeline behaviors.
- Loading branch information
1 parent
7a5068e
commit 6cc321c
Showing
23 changed files
with
72 additions
and
1,069 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
1 change: 1 addition & 0 deletions
1
packages/babylon/test/fixtures/experimental/pipeline-operator/arrow-requires-parens/input.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |> x => x + 1; |
4 changes: 4 additions & 0 deletions
4
...s/babylon/test/fixtures/experimental/pipeline-operator/arrow-requires-parens/options.json
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,4 @@ | ||
{ | ||
"plugins": ["pipelineOperator"], | ||
"throws": "Unexpected arrow \"=>\" after pipeline body; arrow function in pipeline body must be parenthesized (1:6)" | ||
} |
4 changes: 0 additions & 4 deletions
4
packages/babylon/test/fixtures/experimental/pipeline-operator/await-asi-semi/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babylon/test/fixtures/experimental/pipeline-operator/await-asi-semi/options.json
This file was deleted.
Oops, something went wrong.
215 changes: 0 additions & 215 deletions
215
packages/babylon/test/fixtures/experimental/pipeline-operator/await-asi-semi/output.json
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
packages/babylon/test/fixtures/experimental/pipeline-operator/await-asi/input.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/babylon/test/fixtures/experimental/pipeline-operator/await-asi/options.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.