@poe-platform/safe-js 0.1.262 → 0.1.263

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.
@@ -27,7 +27,7 @@ import {
27
27
  validateMigrationSemantics,
28
28
  validateSnapshotData,
29
29
  validateSnapshotMigration
30
- } from "./chunk-LTZBKTUZ.js";
30
+ } from "./chunk-ATYG2NJO.js";
31
31
 
32
32
  // packages/safe-js/src/migrate.ts
33
33
  import { createHash } from "node:crypto";
@@ -8249,4 +8249,4 @@ export {
8249
8249
  parseMcpConfig,
8250
8250
  makeMcpModule
8251
8251
  };
8252
- //# sourceMappingURL=chunk-O5Y6Q2W5.js.map
8252
+ //# sourceMappingURL=chunk-22FQB7VW.js.map
@@ -13656,6 +13656,11 @@ function createObjectArrayGlobals(options) {
13656
13656
  setPrototypeOf: createSandboxClosure({
13657
13657
  sandbox: true,
13658
13658
  call: ([value, prototype]) => {
13659
+ if (value === null || value === void 0)
13660
+ throw new TypeError("Cannot set the prototype of null or undefined.");
13661
+ if (prototype !== null && typeof prototype !== "object")
13662
+ throw new TypeError("Prototype must be an object or null.");
13663
+ if (typeof value !== "object") return value;
13659
13664
  objectProperties(value, true);
13660
13665
  if (prototype !== null) objectProperties(prototype);
13661
13666
  setSandboxPrototype(value, prototype, options.budget);
@@ -40036,4 +40041,4 @@ export {
40036
40041
  FileSnapshotBackend,
40037
40042
  run
40038
40043
  };
40039
- //# sourceMappingURL=chunk-LTZBKTUZ.js.map
40044
+ //# sourceMappingURL=chunk-ATYG2NJO.js.map