Skip to content
Permalink
Browse files

fix flow tuple

  • Loading branch information...
tanhauhau committed Jun 13, 2019
1 parent cb379b4 commit 3002aa0f472a4a246a61e5d63d9a1b895e14b305
Showing with 4 additions and 2 deletions.
  1. +4 −1 packages/babel-parser/src/plugins/flow.js
  2. +0 −1 scripts/tests/flow/flow_tests_whitelist.txt
@@ -1263,7 +1263,10 @@ export default (superClass: Class<Parser>): Class<Parser> =>
});

case tt.bracketL:
return this.flowParseTupleType();
this.state.noAnonFunctionType = false;
type = this.flowParseTupleType();
this.state.noAnonFunctionType = oldNoAnonFunctionType;
return type;

case tt.relational:
if (this.state.value === "<") {
@@ -9,7 +9,6 @@
# Entries should be removed incrementally as the babel parser is improved.

JSX_invalid/migrated_0000.js
arrow_function/tuple_return_type.js
arrow_function_invalid/migrated_0002.js
async_await/migrated_0007.js
async_await/migrated_0020.js

0 comments on commit 3002aa0

Please sign in to comment.
You can’t perform that action at this time.