@nudojs/core 1.1.1 → 1.1.2

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.
@@ -41,7 +41,7 @@ import {
41
41
  unknown,
42
42
  v,
43
43
  withExecPhi
44
- } from "./chunk-CDH7QCGQ.js";
44
+ } from "./chunk-UC3LBZYR.js";
45
45
 
46
46
  // src/algebra/constraint.ts
47
47
  var SELF = "__nudo_self__";
@@ -12533,7 +12533,9 @@ __export(calls_exports, {
12533
12533
  $recordBinding: () => $recordBinding,
12534
12534
  MAX_B_CALL_DEPTH: () => MAX_B_CALL_DEPTH,
12535
12535
  MAX_B_TOTAL_CALLS: () => MAX_B_TOTAL_CALLS,
12536
+ blockHostSideEffect: () => blockHostSideEffect,
12536
12537
  getBCallCollector: () => getBCallCollector,
12538
+ neverExecHostName: () => neverExecHostName,
12537
12539
  noteBCallRecord: () => noteBCallRecord,
12538
12540
  resetBCallBudget: () => resetBCallBudget,
12539
12541
  setBAssignCollector: () => setBAssignCollector,
@@ -12602,6 +12604,12 @@ function neverExecHostName(fn) {
12602
12604
  }
12603
12605
  return null;
12604
12606
  }
12607
+ function blockHostSideEffect(fn) {
12608
+ const hostName = neverExecHostName(fn);
12609
+ if (hostName === null) return null;
12610
+ noteHostEffectBlocked(hostName);
12611
+ return abs({ k: "unknown" }, void 0, void 0, "opaque");
12612
+ }
12605
12613
  function noteBCallRecord(r) {
12606
12614
  if (!bCallCollector) return;
12607
12615
  try {
@@ -12683,12 +12691,11 @@ function $callNamed(name, fn, args, loc, argLocs) {
12683
12691
  try {
12684
12692
  if (typeof fn === "function") {
12685
12693
  const g = GLOBAL_FNS.has(name) && fn === globalThis[name] ? evalGlobalFn(name, args) : void 0;
12686
- const blockedHost = g === void 0 ? neverExecHostName(fn) : null;
12694
+ const blockedHost = g === void 0 ? blockHostSideEffect(fn) : null;
12687
12695
  if (g !== void 0) {
12688
12696
  result = g;
12689
12697
  } else if (blockedHost !== null) {
12690
- noteHostEffectBlocked(blockedHost);
12691
- result = bTruncatedAbs();
12698
+ result = blockedHost;
12692
12699
  } else {
12693
12700
  const entered = bEnterCall(name, fn, args);
12694
12701
  if (!entered.ok) {
@@ -12959,6 +12966,8 @@ function $new(cls, args) {
12959
12966
  }
12960
12967
  }
12961
12968
  if (typeof cls === "function") {
12969
+ const blockedHost = blockHostSideEffect(cls);
12970
+ if (blockedHost) return blockedHost;
12962
12971
  if (cls === Array) {
12963
12972
  return makeArrayCtorAbs(args);
12964
12973
  }
package/dist/exec.js CHANGED
@@ -162,7 +162,7 @@ import {
162
162
  transpileSource,
163
163
  tryRunTranspiled,
164
164
  withExecPhi
165
- } from "./chunk-CDH7QCGQ.js";
165
+ } from "./chunk-UC3LBZYR.js";
166
166
  export {
167
167
  $add,
168
168
  $arguments,
package/dist/index.js CHANGED
@@ -67,7 +67,7 @@ import {
67
67
  takeRefineDiagsSince,
68
68
  throwConstraintToKinds,
69
69
  union
70
- } from "./chunk-V2I7VXFZ.js";
70
+ } from "./chunk-EFFPFUSD.js";
71
71
  import {
72
72
  $add,
73
73
  $arguments,
@@ -466,7 +466,7 @@ import {
466
466
  v,
467
467
  withExecPhi,
468
468
  withVar
469
- } from "./chunk-CDH7QCGQ.js";
469
+ } from "./chunk-UC3LBZYR.js";
470
470
 
471
471
  // src/environment.ts
472
472
  function createEnvironment(parent, bindings = /* @__PURE__ */ new Map()) {
package/dist/internal.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  resolveDepPath,
17
17
  sidecarSpecsOf,
18
18
  stableAnalyzeKeySource
19
- } from "./chunk-V2I7VXFZ.js";
19
+ } from "./chunk-EFFPFUSD.js";
20
20
  import {
21
21
  $tryDigestSoft,
22
22
  $tryMarkSoft,
@@ -135,7 +135,7 @@ import {
135
135
  truncatedAbs,
136
136
  viewTemplateParts,
137
137
  wrapPromise
138
- } from "./chunk-CDH7QCGQ.js";
138
+ } from "./chunk-UC3LBZYR.js";
139
139
 
140
140
  // src/algebra/inlay.ts
141
141
  function listFunctions(source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nudojs/core",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "engines": {
5
5
  "node": ">=20"
6
6
  },