Skip to content

Commit 867a563

Browse files
committed
fix folding of chains
1 parent 6e9bc76 commit 867a563

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/util.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,7 @@ function isSimpleCallArgument(node, depth = 2) {
682682

683683
return (
684684
parts.length <= depth &&
685+
(node.arguments ?? []).every(isChildSimple) &&
685686
parts.every((node) =>
686687
isLookupNode(node)
687688
? isChildSimple(node.offset)

0 commit comments

Comments
 (0)