@poe-platform/safe-js 0.1.269 → 0.1.270

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.
@@ -11874,7 +11874,8 @@ function getPromisePrototype(budget) {
11874
11874
  newTarget: void 0
11875
11875
  });
11876
11876
  };
11877
- const then = readPromiseReceiverProperty(target, "then", prototype, context);
11877
+ const descriptor = getSandboxPropertyDescriptor(target, "then", budget);
11878
+ const then = descriptor === void 0 ? readPromiseReceiverProperty(target, "then", prototype, context) : readPropertyDescriptor(descriptor, target, context, true);
11878
11879
  return then instanceof Promise ? then.then(invoke) : invoke(then);
11879
11880
  },
11880
11881
  name: "catch"
@@ -11932,7 +11933,8 @@ function getPromisePrototype(budget) {
11932
11933
  });
11933
11934
  };
11934
11935
  const finish = () => {
11935
- const then = readPromiseReceiverProperty(target, "then", prototype, context);
11936
+ const descriptor = getSandboxPropertyDescriptor(target, "then", budget);
11937
+ const then = descriptor === void 0 ? readPromiseReceiverProperty(target, "then", prototype, context) : readPropertyDescriptor(descriptor, target, context, true);
11936
11938
  return then instanceof Promise ? then.then(invoke) : invoke(then);
11937
11939
  };
11938
11940
  const validation = validatePromiseConstructorProperty(target, prototype, context);
@@ -40100,4 +40102,4 @@ export {
40100
40102
  FileSnapshotBackend,
40101
40103
  run
40102
40104
  };
40103
- //# sourceMappingURL=chunk-VIBISLKQ.js.map
40105
+ //# sourceMappingURL=chunk-JJRD6D25.js.map