nudojs 1.3.8 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +14 -1
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -29792,7 +29792,20 @@ function applyInstanceFields(spec, thisVal) {
29792
29792
  }
29793
29793
  function constructClass(className, thisVal, args) {
29794
29794
  const spec = getEvalClass(className);
29795
- if (!spec) return thisVal;
29795
+ if (!spec) {
29796
+ if (isErrorCtorName(className)) {
29797
+ const eb = errorBrandAbs(className, args);
29798
+ const instName = thisVal.shape.k === "brand" ? thisVal.shape.name : className;
29799
+ const inner = eb.shape.k === "brand" ? eb.shape.shape : objOf({});
29800
+ return abs(
29801
+ { k: "brand", name: instName, shape: inner },
29802
+ eb.term,
29803
+ eb.pred,
29804
+ eb.conf
29805
+ );
29806
+ }
29807
+ return thisVal;
29808
+ }
29796
29809
  if (spec.ctor) {
29797
29810
  let tv = thisVal;
29798
29811
  if (!spec.superName && !spec.superNull) tv = applyInstanceFields(spec, tv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nudojs",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },
@@ -46,11 +46,11 @@
46
46
  "dependencies": {
47
47
  "@babel/generator": "^8.0.6",
48
48
  "@babel/types": "^8.0.6",
49
- "@nudojs/core": "1.7.7",
50
- "@nudojs/env": "0.4.22",
51
- "@nudojs/harvester": "0.3.8",
52
- "@nudojs/parser": "1.4.4",
53
- "@nudojs/service": "1.6.7",
49
+ "@nudojs/core": "1.7.8",
50
+ "@nudojs/env": "0.4.23",
51
+ "@nudojs/harvester": "0.3.9",
52
+ "@nudojs/parser": "1.4.5",
53
+ "@nudojs/service": "1.6.8",
54
54
  "commander": "^15.0.0"
55
55
  },
56
56
  "devDependencies": {