mirror of
https://github.com/morluto/rea
synced 2026-10-27 14:42:18 -04:00
fix(javascript): preserve uncertainty in compound assignment results (#4342)
* fix(javascript): preserve uncertainty in compound assignment results * fix(javascript): retain callable logical assignment alternatives * fix(javascript): read prior module export assignment values * fix: keep mutable module export assignment candidates conservative * fix: preserve mixed receiver values and wrapped assignment targets * fix: carry mutable export uncertainty through copied values
This commit is contained in:
@@ -9,6 +9,7 @@ export const symbolicLogicalRight = (
|
||||
operator: t.LogicalExpression["operator"],
|
||||
left: SymbolicValue,
|
||||
): boolean | undefined => {
|
||||
if (left.kind === "namespace" && left.runtimeValueUnknown) return undefined;
|
||||
if (left.kind === "union") {
|
||||
const choices = left.values.map((value) =>
|
||||
symbolicLogicalRight(operator, value),
|
||||
|
||||
Reference in New Issue
Block a user