@poe-platform/safe-js 0.1.214 → 0.1.216

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.
@@ -191,6 +191,7 @@ var Budget = class {
191
191
  retainedValueSources = /* @__PURE__ */ new Map();
192
192
  compileGeneration = 0;
193
193
  activeCompileOwner;
194
+ defaultCompileOwner;
194
195
  compileUses = 0;
195
196
  provisionalScopes = 0;
196
197
  compileTickets = /* @__PURE__ */ new Map();
@@ -273,7 +274,7 @@ var Budget = class {
273
274
  throw new SandboxError("reentry");
274
275
  }
275
276
  if (reset) this.reset();
276
- const selected = owner ?? Object.freeze({ budget: this, generation: this.compileGeneration });
277
+ const selected = owner ?? (this.defaultCompileOwner ??= Object.freeze({ budget: this, generation: this.compileGeneration }));
277
278
  this.activeCompileOwner = selected;
278
279
  this.compileUses += 1;
279
280
  let released = false;
@@ -391,6 +392,7 @@ var Budget = class {
391
392
  reset() {
392
393
  if (this.compileUses !== 0) throw new SandboxError("reentry");
393
394
  this.compileGeneration += 1;
395
+ this.defaultCompileOwner = void 0;
394
396
  this.provisionalScopes = 0;
395
397
  this.compileTickets.clear();
396
398
  this.completedCompileTickets.clear();
@@ -16892,6 +16894,8 @@ async function evaluateMemberAssignmentExpression(node, context) {
16892
16894
  });
16893
16895
  }
16894
16896
  async function evaluateLogicalExpression(node, context) {
16897
+ if (context.generatorResume !== void 0 && containsResumeTarget(node.right, /* @__PURE__ */ new Set([context.generatorResume.yieldNodeId])))
16898
+ return evaluateNode(node.right, context);
16895
16899
  const left = await evaluateNode(node.left, context);
16896
16900
  if (left.kind !== "normal") {
16897
16901
  return left;
@@ -16934,6 +16938,11 @@ async function evaluateSequenceExpression(node, context) {
16934
16938
  return result;
16935
16939
  }
16936
16940
  async function evaluateConditionalExpression(node, context) {
16941
+ if (context.generatorResume !== void 0) {
16942
+ const target = /* @__PURE__ */ new Set([context.generatorResume.yieldNodeId]);
16943
+ if (containsResumeTarget(node.consequent, target)) return evaluateNode(node.consequent, context);
16944
+ if (containsResumeTarget(node.alternate, target)) return evaluateNode(node.alternate, context);
16945
+ }
16937
16946
  const test = await evaluateNode(node.test, context);
16938
16947
  if (test.kind !== "normal") {
16939
16948
  return test;
@@ -38626,4 +38635,4 @@ export {
38626
38635
  FileSnapshotBackend,
38627
38636
  run
38628
38637
  };
38629
- //# sourceMappingURL=chunk-OFYATXUI.js.map
38638
+ //# sourceMappingURL=chunk-J5BFJAKX.js.map