@poe-platform/safe-js 0.1.144 → 0.1.146
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-MOVL45AH.js → chunk-OVRBSGVT.js} +4 -4
- package/dist/safe-js/chunks/{chunk-MOVL45AH.js.map → chunk-OVRBSGVT.js.map} +2 -2
- package/dist/safe-js/chunks/{chunk-2MIT6YAQ.js → chunk-P6ZTK7QA.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-2MIT6YAQ.js.map → chunk-P6ZTK7QA.js.map} +0 -0
|
@@ -28803,7 +28803,7 @@ async function interpret(node, options = {}) {
|
|
|
28803
28803
|
}
|
|
28804
28804
|
async function evaluateNode(node, context) {
|
|
28805
28805
|
context.assertActive?.();
|
|
28806
|
-
if (context.inferredName !== void 0 && node.type !== "ClassExpression") context = { ...context, inferredName: void 0 };
|
|
28806
|
+
if (context.inferredName !== void 0 && node.type !== "ClassExpression" && !(node.type === "FunctionExpression" && node.method === true)) context = { ...context, inferredName: void 0 };
|
|
28807
28807
|
const replayWait = promiseReplayContext.getStore()?.beforeNode(node.nodeId);
|
|
28808
28808
|
if (replayWait !== void 0) await suspendJob(replayWait);
|
|
28809
28809
|
assertPromiseExecutionAllowed();
|
|
@@ -31651,7 +31651,7 @@ function createInterpretedClosure(node, context, evaluateNode2, homeObject) {
|
|
|
31651
31651
|
sandbox: true,
|
|
31652
31652
|
length: getFunctionLength(node.params),
|
|
31653
31653
|
...node.async ? { async: true } : {},
|
|
31654
|
-
...node.type === "FunctionDeclaration" || node.type === "FunctionExpression" ? node.id === void 0 ? {} : { name: node.id.name } : {},
|
|
31654
|
+
...node.type === "FunctionDeclaration" || node.type === "FunctionExpression" ? node.id === void 0 ? { name: context.inferredName } : { name: node.id.name } : {},
|
|
31655
31655
|
...construct === void 0 ? {} : { construct },
|
|
31656
31656
|
retainedValues: () => [...context.scope.retainedValues(), context.functionEnvironment?.homeObject, context.functionEnvironment?.newTarget],
|
|
31657
31657
|
call: (args, callContext) => {
|
|
@@ -31714,7 +31714,7 @@ function createGeneratorClosure(node, context, evaluateNode2) {
|
|
|
31714
31714
|
generator: true,
|
|
31715
31715
|
sandbox: true,
|
|
31716
31716
|
length: getFunctionLength(node.params),
|
|
31717
|
-
...node.id === void 0 ? {} : { name: node.id.name },
|
|
31717
|
+
...node.id === void 0 ? { name: context.inferredName } : { name: node.id.name },
|
|
31718
31718
|
retainedValues: () => [...context.scope.retainedValues(), context.functionEnvironment?.homeObject, context.functionEnvironment?.newTarget],
|
|
31719
31719
|
call: async (args, callContext) => {
|
|
31720
31720
|
const closureContext = {
|
|
@@ -35534,4 +35534,4 @@ export {
|
|
|
35534
35534
|
FileSnapshotBackend,
|
|
35535
35535
|
run
|
|
35536
35536
|
};
|
|
35537
|
-
//# sourceMappingURL=chunk-
|
|
35537
|
+
//# sourceMappingURL=chunk-OVRBSGVT.js.map
|