* test: add test for nullish coalescing Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * test: add control group * test: add tests for optional chaining Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com> * test: add tests on optional chaining mixed with private class elements * fix: wrap member chains to IIFE when it is in parameter default * chore: add more testcases * chore: update test fixtures * fix: NodePath.get is always non nullish Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
10 lines
177 B
JavaScript
10 lines
177 B
JavaScript
function f(a = x?.y) {}
|
|
|
|
function g({ a, b = a?.c }) {}
|
|
|
|
function h(a, { b = a.b?.c?.d.e }) {}
|
|
|
|
function i(a, { b = (a.b?.c?.d).e }) {}
|
|
|
|
function j(a, { b = a?.b?.c().d.e }) {}
|