@poe-platform/safe-js 0.1.259 → 0.1.260

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.
@@ -8009,7 +8009,10 @@ function setSandboxPrototype(value, prototype, budget) {
8009
8009
  "Prototype links require ordinary sandbox objects, arrays, or guest functions."
8010
8010
  );
8011
8011
  }
8012
- if (prototypes.has(value) && getSandboxPrototype(value, budget) === prototype) return;
8012
+ if (getSandboxPrototype(value, budget) === prototype) {
8013
+ if (prototype === null) prototypes.set(value, null);
8014
+ return;
8015
+ }
8013
8016
  if (!Object.isExtensible(isGuestClosure(value) ? materializeFunctionProperties(value) : isSandboxRegex(value) ? getRegexProperties(value) : isSandboxMap(value) || isSandboxSet(value) ? getCollectionProperties(value) : value)) {
8014
8017
  throw new TypeError("Cannot change the prototype of a non-extensible object.");
8015
8018
  }
@@ -40033,4 +40036,4 @@ export {
40033
40036
  FileSnapshotBackend,
40034
40037
  run
40035
40038
  };
40036
- //# sourceMappingURL=chunk-2OYR4JID.js.map
40039
+ //# sourceMappingURL=chunk-CPIBGRWA.js.map