[BugFix] : OptionalChaining Bug fixes (#7288)
* 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
This commit is contained in:
committed by
Justin Ridgewell
parent
dd0337cc85
commit
a3ad518ce1
1
packages/babylon/test/fixtures/experimental/optional-chaining/optional-constructor/input.js
vendored
Normal file
1
packages/babylon/test/fixtures/experimental/optional-chaining/optional-constructor/input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
new a?.();
|
||||
Reference in New Issue
Block a user