@poe-platform/safe-js 0.1.156 → 0.1.157
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.
- package/dist/safe-js/chunks/{chunk-4DTGT4CA.js → chunk-BTIHHHII.js} +4 -14
- package/dist/safe-js/chunks/{chunk-4DTGT4CA.js.map → chunk-BTIHHHII.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-P3ZBNLTF.js → chunk-C6UXDKOA.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-P3ZBNLTF.js.map → chunk-C6UXDKOA.js.map} +0 -0
|
@@ -30357,7 +30357,7 @@ async function evaluateYieldExpression(node, context) {
|
|
|
30357
30357
|
return generatorCompletionResult(completion);
|
|
30358
30358
|
}
|
|
30359
30359
|
async function yieldGeneratorValue(value, node, context) {
|
|
30360
|
-
if (context.asyncGenerator) value = await suspendJob(awaitSandboxValue(value, context.signal, context.budget));
|
|
30360
|
+
if (context.asyncGenerator && !node.delegate) value = await suspendJob(awaitSandboxValue(value, context.signal, context.budget));
|
|
30361
30361
|
const completionPromise = context.generatorYield(allocateProducedSandboxValue(value, context.budget), node.nodeId);
|
|
30362
30362
|
emitResumeBreakpoint(context, {
|
|
30363
30363
|
kind: "generator-yield",
|
|
@@ -30379,8 +30379,7 @@ async function evaluateYieldDelegate(node, context) {
|
|
|
30379
30379
|
if (argument.kind !== "normal") {
|
|
30380
30380
|
return argument;
|
|
30381
30381
|
}
|
|
30382
|
-
const
|
|
30383
|
-
const iterator = asyncDelegate ? generatorIterator(asyncDelegate, context.budget) : getSandboxIterator(
|
|
30382
|
+
const iterator = context.asyncGenerator ? getSandboxAsyncIterator(argument.value, context.budget, createCoercionContext(context), context.signal) : getSandboxIterator(
|
|
30384
30383
|
argument.value,
|
|
30385
30384
|
context.budget,
|
|
30386
30385
|
createCoercionContext(context)
|
|
@@ -30415,16 +30414,7 @@ async function evaluateYieldDelegate(node, context) {
|
|
|
30415
30414
|
throw new TypeError("Iterator result must be an object.");
|
|
30416
30415
|
}
|
|
30417
30416
|
const done = result.done;
|
|
30418
|
-
|
|
30419
|
-
if (context.asyncGenerator) {
|
|
30420
|
-
try {
|
|
30421
|
-
value = await suspendJob(awaitSandboxValue(value, context.signal, context.budget));
|
|
30422
|
-
} catch (error) {
|
|
30423
|
-
if (isFatalSandboxError(error) || error instanceof HostCallResumabilityError) throw error;
|
|
30424
|
-
if (!asyncDelegate && !done && method !== "return") await closeIterator(iterator, true);
|
|
30425
|
-
throw error;
|
|
30426
|
-
}
|
|
30427
|
-
}
|
|
30417
|
+
const value = result.value;
|
|
30428
30418
|
if (done) {
|
|
30429
30419
|
if (completion.type === "return") {
|
|
30430
30420
|
return generatorCompletionResult({ type: "return", value });
|
|
@@ -35708,4 +35698,4 @@ export {
|
|
|
35708
35698
|
FileSnapshotBackend,
|
|
35709
35699
|
run
|
|
35710
35700
|
};
|
|
35711
|
-
//# sourceMappingURL=chunk-
|
|
35701
|
+
//# sourceMappingURL=chunk-BTIHHHII.js.map
|