Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[BugFix] : OptionalChaining Bug fixes #7288
Created new node types on babel-types and babylon. OptionalMemberExpressions and OptionalCallExpressions, which while transforming are converted to Normal MemberExpression and CallExpressions (to satisfy transformed AST). Added some tests to babylon and transforms. This will be a breaking change
Suggestions/edits are welcome.
* Added optionalExpression types to babylon and babel-types * OptionalChain transforms bug fix * Added OptionalExpressions to babel-generator. Fixed OptionalChain Bugs * Removed 'optionalChain' from newExpression and added test cases * Added test cases for optionalChain * Update index.js