-
-
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.
* refactor: reimplement nullish coalescing precedence tracking Co-authored-by: Toru Nagashima <[email protected]> * fix: Coalesce has same precedence with LogicalOR * fix flow errors Co-authored-by: Toru Nagashima <[email protected]>
- Loading branch information
1 parent
6648d62
commit 45301c5
Showing
7 changed files
with
42 additions
and
59 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
2 changes: 1 addition & 1 deletion
2
...parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-and-nullish/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["estree"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)" | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-and/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:5)" | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-nullish-or/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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:10)" | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:12)" | ||
} |
2 changes: 1 addition & 1 deletion
2
...-parser/test/fixtures/es2020/nullish-coalescing-operator/no-paren-or-nullish/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"plugins": ["estree"], | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:0)" | ||
"throws": "Nullish coalescing operator(??) requires parens when mixing with logical operators (1:7)" | ||
} |