@poe-platform/safe-js 0.1.373 → 0.1.374

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.
@@ -28552,8 +28552,13 @@ function measureSandboxData(values, options = {}) {
28552
28552
  if (Array.isArray(value)) {
28553
28553
  usage += value.length;
28554
28554
  if (hasManagedDescriptors(value)) {
28555
- for (const [key, descriptor] of Object.entries(Object.getOwnPropertyDescriptors(value))) {
28555
+ const descriptors3 = [];
28556
+ for (const key of Object.getOwnPropertyNames(value)) {
28556
28557
  if (key === "length") continue;
28558
+ const descriptor = Object.getOwnPropertyDescriptor(value, key);
28559
+ if (descriptor !== void 0) descriptors3.push([key, descriptor]);
28560
+ }
28561
+ for (const [key, descriptor] of descriptors3) {
28557
28562
  usage += key.length + 1;
28558
28563
  if ("value" in descriptor) visit(descriptor.value, depth + 1);
28559
28564
  else for (const closure of retainedAccessorClosures(descriptor)) visit(closure, depth + 1);
@@ -43642,4 +43647,4 @@ export {
43642
43647
  FileSnapshotBackend,
43643
43648
  run
43644
43649
  };
43645
- //# sourceMappingURL=chunk-SCIKHRZS.js.map
43650
+ //# sourceMappingURL=chunk-35DAUDMZ.js.map