@poe-platform/safe-js 0.1.239 → 0.1.240

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.
@@ -16545,20 +16545,24 @@ async function evaluateWhileStatement(node, context) {
16545
16545
  }
16546
16546
  }
16547
16547
  async function evaluateDoWhileStatement(node, context) {
16548
+ let resumeTest = context.generatorResume !== void 0 && context.generatorResume.completed !== true && containsResumeTarget(node.test, /* @__PURE__ */ new Set([context.generatorResume.yieldNodeId]));
16548
16549
  while (true) {
16549
- const iterationContext = createLoopIterationContext(context, context.scope);
16550
- emitLoopIterationBreakpoint(node, iterationContext);
16551
- const result = await evaluateNode(node.body, iterationContext);
16552
- if (isMatchingBreak(result, loopLabels(node))) {
16553
- return {
16554
- kind: "normal",
16555
- hasValue: false,
16556
- value: void 0
16557
- };
16558
- }
16559
- if (result.kind !== "normal" && !isMatchingContinue(result, loopLabels(node))) {
16560
- return result;
16550
+ if (!resumeTest) {
16551
+ const iterationContext = createLoopIterationContext(context, context.scope);
16552
+ emitLoopIterationBreakpoint(node, iterationContext);
16553
+ const result = await evaluateNode(node.body, iterationContext);
16554
+ if (isMatchingBreak(result, loopLabels(node))) {
16555
+ return {
16556
+ kind: "normal",
16557
+ hasValue: false,
16558
+ value: void 0
16559
+ };
16560
+ }
16561
+ if (result.kind !== "normal" && !isMatchingContinue(result, loopLabels(node))) {
16562
+ return result;
16563
+ }
16561
16564
  }
16565
+ resumeTest = false;
16562
16566
  const test = await evaluateNode(node.test, context);
16563
16567
  if (test.kind !== "normal") {
16564
16568
  return test;
@@ -39288,4 +39292,4 @@ export {
39288
39292
  FileSnapshotBackend,
39289
39293
  run
39290
39294
  };
39291
- //# sourceMappingURL=chunk-GM6QCOXT.js.map
39295
+ //# sourceMappingURL=chunk-IIEGYHM4.js.map