@nudojs/core 1.7.6 → 1.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,7 +48,7 @@ import {
48
48
  withEvalBudgetOverride,
49
49
  withExecPhi,
50
50
  withFnBudgetOverride
51
- } from "./chunk-FEGOCPGH.js";
51
+ } from "./chunk-YQIRU637.js";
52
52
 
53
53
  // src/algebra/directive-scan.ts
54
54
  function cleanDirectiveLine(raw, kind) {
@@ -1274,7 +1274,19 @@ function constraintOnTermAbs(c, t) {
1274
1274
  (p) => p.op === "eq" && (p.b.op === "lit" && (p.b.value === null || p.b.value === void 0) || p.a.op === "lit" && (p.a.value === null || p.a.value === void 0))
1275
1275
  );
1276
1276
  if (allEqNullish) {
1277
- return abs({ k: "unknown" }, t, predOut, "path");
1277
+ let nullish = null;
1278
+ for (const p of c.preds) {
1279
+ if (p.op !== "eq") continue;
1280
+ if (p.b.op === "lit" && (p.b.value === null || p.b.value === void 0)) {
1281
+ nullish = p.b.value;
1282
+ break;
1283
+ }
1284
+ if (p.a.op === "lit" && (p.a.value === null || p.a.value === void 0)) {
1285
+ nullish = p.a.value;
1286
+ break;
1287
+ }
1288
+ }
1289
+ return abs({ k: "unknown" }, lit(nullish), void 0, "path");
1278
1290
  }
1279
1291
  if (c.preds.length > 0) {
1280
1292
  return abs({ k: "prim", type: "number" }, t, predOut, "path");