@nudojs/core 1.7.7 → 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-JVUHIUFN.js";
51
+ } from "./chunk-YQIRU637.js";
52
52
 
53
53
  // src/algebra/directive-scan.ts
54
54
  function cleanDirectiveLine(raw, kind) {
@@ -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) return thisVal;
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
@@ -192,7 +192,7 @@ import {
192
192
  tryRunTranspiled,
193
193
  withEvalBudgetOverride,
194
194
  withExecPhi
195
- } from "./chunk-JVUHIUFN.js";
195
+ } from "./chunk-YQIRU637.js";
196
196
  export {
197
197
  $absVal,
198
198
  $add,
package/dist/index.js CHANGED
@@ -91,7 +91,7 @@ import {
91
91
  takeRefineDiagsSince,
92
92
  throwConstraintToKinds,
93
93
  union
94
- } from "./chunk-4WVYY2KS.js";
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-JVUHIUFN.js";
516
+ } from "./chunk-YQIRU637.js";
517
517
 
518
518
  // src/environment.ts
519
519
  function createEnvironment(parent, bindings = /* @__PURE__ */ new Map()) {
package/dist/internal.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  stableAnalyzeKeySource,
22
22
  stablePathKey,
23
23
  stablePathKeyGraph
24
- } from "./chunk-4WVYY2KS.js";
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-JVUHIUFN.js";
172
+ } from "./chunk-YQIRU637.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.7",
3
+ "version": "1.7.8",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },