@nudojs/core 1.7.7 → 1.7.9
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.
|
@@ -14694,7 +14694,20 @@ function applyInstanceFields(spec, thisVal) {
|
|
|
14694
14694
|
}
|
|
14695
14695
|
function constructClass(className, thisVal, args) {
|
|
14696
14696
|
const spec = getEvalClass(className);
|
|
14697
|
-
if (!spec)
|
|
14697
|
+
if (!spec) {
|
|
14698
|
+
if (isErrorCtorName(className)) {
|
|
14699
|
+
const eb = errorBrandAbs(className, args);
|
|
14700
|
+
const instName = thisVal.shape.k === "brand" ? thisVal.shape.name : className;
|
|
14701
|
+
const inner = eb.shape.k === "brand" ? eb.shape.shape : objOf({});
|
|
14702
|
+
return abs(
|
|
14703
|
+
{ k: "brand", name: instName, shape: inner },
|
|
14704
|
+
eb.term,
|
|
14705
|
+
eb.pred,
|
|
14706
|
+
eb.conf
|
|
14707
|
+
);
|
|
14708
|
+
}
|
|
14709
|
+
return thisVal;
|
|
14710
|
+
}
|
|
14698
14711
|
if (spec.ctor) {
|
|
14699
14712
|
let tv = thisVal;
|
|
14700
14713
|
if (!spec.superName && !spec.superNull) tv = applyInstanceFields(spec, tv);
|
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-5SAMWKI6.js";
|
|
95
95
|
import {
|
|
96
96
|
$add,
|
|
97
97
|
$arguments,
|
|
@@ -513,7 +513,7 @@ import {
|
|
|
513
513
|
v,
|
|
514
514
|
withExecPhi,
|
|
515
515
|
withVar
|
|
516
|
-
} from "./chunk-
|
|
516
|
+
} from "./chunk-YQIRU637.js";
|
|
517
517
|
|
|
518
518
|
// src/environment.ts
|
|
519
519
|
function createEnvironment(parent, bindings = /* @__PURE__ */ new Map()) {
|
|
@@ -786,6 +786,15 @@ function flattenSumArms(ret) {
|
|
|
786
786
|
function isWidenedSumArm(m, parent) {
|
|
787
787
|
return parent.conf === "partial" && m.shape.k === "prim" && !m.term && (!m.pred || m.pred.op === "true");
|
|
788
788
|
}
|
|
789
|
+
function provesBarePrimDomain(arm, constraint) {
|
|
790
|
+
if (!constraint.prim || constraint.preds.length > 0 || isIntFlag(constraint)) {
|
|
791
|
+
return false;
|
|
792
|
+
}
|
|
793
|
+
if (constraint.fields || constraint.element || constraint.members || constraint.fn) {
|
|
794
|
+
return false;
|
|
795
|
+
}
|
|
796
|
+
return arm.shape.k === "prim" && arm.shape.type === constraint.prim;
|
|
797
|
+
}
|
|
789
798
|
function assertImplies(ret, constraint, opts) {
|
|
790
799
|
const phi = opts?.phi ?? pTrue;
|
|
791
800
|
if (ret.shape.k === "never") return proved();
|
|
@@ -820,6 +829,9 @@ function assertSumArms(arms, parent, constraint, opts, phi) {
|
|
|
820
829
|
continue;
|
|
821
830
|
}
|
|
822
831
|
if (isValueSetUnknown(arm) || isWidenedSumArm(arm, parent)) {
|
|
832
|
+
if (isWidenedSumArm(arm, parent) && provesBarePrimDomain(arm, constraint)) {
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
823
835
|
sawUnprovable = true;
|
|
824
836
|
continue;
|
|
825
837
|
}
|
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-5SAMWKI6.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-YQIRU637.js";
|
|
173
173
|
|
|
174
174
|
// src/algebra/inlay.ts
|
|
175
175
|
function listFunctions(source) {
|