@nudojs/core 1.7.4 → 1.7.5
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.
|
@@ -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
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
takeRefineDiagsSince,
|
|
92
92
|
throwConstraintToKinds,
|
|
93
93
|
union
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-C4JAYZKA.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-
|
|
516
|
+
} from "./chunk-KYUSY6BH.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-
|
|
24
|
+
} from "./chunk-C4JAYZKA.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-
|
|
172
|
+
} from "./chunk-KYUSY6BH.js";
|
|
173
173
|
|
|
174
174
|
// src/algebra/inlay.ts
|
|
175
175
|
function listFunctions(source) {
|