@poe-platform/safe-js 0.1.267 → 0.1.268

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.
@@ -11737,10 +11737,14 @@ function createPromiseGlobals(options) {
11737
11737
  if (typeof constructor !== "object" || constructor === null) {
11738
11738
  throw new TypeError("Promise.resolve requires an object receiver.");
11739
11739
  }
11740
- if (isSandboxPromise(value) && getPromiseMember("constructor", options.budget) === constructor) {
11741
- return value;
11742
- }
11743
- return isSandboxPromiseConstructor(constructor) ? createSandboxPromise(resolveSandboxValue(value, { budget: options.budget })) : settleConstructedPromise(constructor, value, "fulfilled", options.budget, context);
11740
+ const finish = (actualConstructor2) => {
11741
+ if (isSandboxPromise(value) && actualConstructor2 === constructor) return value;
11742
+ return isSandboxPromiseConstructor(constructor) ? createSandboxPromise(resolveSandboxValue(value, { budget: options.budget })) : settleConstructedPromise(constructor, value, "fulfilled", options.budget, context);
11743
+ };
11744
+ if (!isSandboxPromise(value)) return finish(void 0);
11745
+ const descriptor = getSandboxPropertyDescriptor(value, "constructor", options.budget);
11746
+ const actualConstructor = descriptor === void 0 ? getPromiseMember("constructor", options.budget) : readPropertyDescriptor(descriptor, value, context, true);
11747
+ return actualConstructor instanceof Promise ? actualConstructor.then(finish) : finish(actualConstructor);
11744
11748
  },
11745
11749
  name: "resolve"
11746
11750
  }),
@@ -40089,4 +40093,4 @@ export {
40089
40093
  FileSnapshotBackend,
40090
40094
  run
40091
40095
  };
40092
- //# sourceMappingURL=chunk-GF6I2VQR.js.map
40096
+ //# sourceMappingURL=chunk-3BMZELFG.js.map