@nudojs/core 1.7.4 → 1.7.6

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-EFOHREUZ.js";
51
+ } from "./chunk-FEGOCPGH.js";
52
52
 
53
53
  // src/algebra/directive-scan.ts
54
54
  function cleanDirectiveLine(raw, kind) {
@@ -13387,7 +13387,7 @@ ${inner}
13387
13387
  return `$call(${transpileExpression(tag, opts)}, [${args}])`;
13388
13388
  }
13389
13389
  case "SequenceExpression":
13390
- return expr.expressions.map((e) => transpileExpression(e, opts)).join(", ");
13390
+ return `(${expr.expressions.map((e) => transpileExpression(e, opts)).join(", ")})`;
13391
13391
  case "ObjectExpression": {
13392
13392
  let acc = null;
13393
13393
  const props = [];
@@ -20240,6 +20240,7 @@ export {
20240
20240
  litTruth,
20241
20241
  isDefinitelyTrue,
20242
20242
  isDefinitelyFalse,
20243
+ isOobUndef,
20243
20244
  runWithLoopExits,
20244
20245
  takeLoopExits,
20245
20246
  takeThrowExits,
package/dist/exec.js CHANGED
@@ -184,7 +184,7 @@ import {
184
184
  tryRunTranspiled,
185
185
  withEvalBudgetOverride,
186
186
  withExecPhi
187
- } from "./chunk-EFOHREUZ.js";
187
+ } from "./chunk-FEGOCPGH.js";
188
188
  export {
189
189
  $absVal,
190
190
  $add,
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  takeRefineDiagsSince,
92
92
  throwConstraintToKinds,
93
93
  union
94
- } from "./chunk-76KJ3D4D.js";
94
+ } from "./chunk-CRDJOFM6.js";
95
95
  import {
96
96
  $add,
97
97
  $arguments,
@@ -351,6 +351,7 @@ import {
351
351
  isNumPrim,
352
352
  isObj,
353
353
  isObjectProtoBrand,
354
+ isOobUndef,
354
355
  isRelFn,
355
356
  isSetAbs,
356
357
  isStrPrim,
@@ -512,7 +513,7 @@ import {
512
513
  v,
513
514
  withExecPhi,
514
515
  withVar
515
- } from "./chunk-EFOHREUZ.js";
516
+ } from "./chunk-FEGOCPGH.js";
516
517
 
517
518
  // src/environment.ts
518
519
  function createEnvironment(parent, bindings = /* @__PURE__ */ new Map()) {
@@ -806,6 +807,10 @@ function assertSumArms(arms, parent, constraint, opts, phi) {
806
807
  );
807
808
  let sawUnprovable = false;
808
809
  for (const arm of arms) {
810
+ if (isOobUndef(arm)) {
811
+ if (!constraintAdmitsNullish(constraint)) sawUnprovable = true;
812
+ continue;
813
+ }
809
814
  if (isNullishLitAbs(arm)) {
810
815
  if (!constraintAdmitsNullish(constraint)) {
811
816
  return disproved(
@@ -831,6 +836,9 @@ function assertSumArms(arms, parent, constraint, opts, phi) {
831
836
  return sawUnprovable ? unprovable("sum: some arms unprovable") : proved();
832
837
  }
833
838
  function assertImpliesSingle(arm, constraint, opts, phi) {
839
+ if (isOobUndef(arm)) {
840
+ return constraintAdmitsNullish(constraint) ? proved() : unprovable("out-of-bounds marker arm (abstract index may miss) \u2014 length fact lost");
841
+ }
834
842
  if (isNullishLitAbs(arm)) {
835
843
  return constraintAdmitsNullish(constraint) ? proved() : disproved(`nullish return \u22AD ${formatConstraint(constraint)}`);
836
844
  }
package/dist/internal.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  stableAnalyzeKeySource,
22
22
  stablePathKey,
23
23
  stablePathKeyGraph
24
- } from "./chunk-76KJ3D4D.js";
24
+ } from "./chunk-CRDJOFM6.js";
25
25
  import {
26
26
  $tryDigestSoft,
27
27
  $tryMarkSoft,
@@ -169,7 +169,7 @@ import {
169
169
  withEvalBudgetOverride,
170
170
  withFnBudgetOverride,
171
171
  wrapPromise
172
- } from "./chunk-EFOHREUZ.js";
172
+ } from "./chunk-FEGOCPGH.js";
173
173
 
174
174
  // src/algebra/inlay.ts
175
175
  function listFunctions(source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nudojs/core",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },