fix: Allow lenientIf for multiple operands (issue #682) (#683)

* allow `lenientIf` for multiple operands

* update tests
This commit is contained in:
Max Medve
2024-04-21 16:04:38 +08:00
committed by GitHub
parent e09657c52b
commit 490ff4309c
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export class Expression {
}
operands.push(result)
} else {
operands.push(yield evalToken(token, ctx, lenient && this.postfix.length === 1))
operands.push(yield evalToken(token, ctx, lenient))
}
}
return operands[0]