Justin Ridgewell 844dd33f3d
Microbouji patch/8136 (#9073)
* Fix optional chaining bug regarding spread in function calls

* Revamp optional-chain to be top down

Instead of going both upwards and downwards from the first real optional expression, we can just start from the top down.

* Add more tests
2018-11-24 09:32:24 -05:00

8 lines
75 B
JavaScript

a?.(...args);
a?.b(...args);
a?.b(...args).c;
a?.b(...args).c(...args);