@poe-platform/safe-js 0.1.416 → 0.1.417

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.
@@ -30404,7 +30404,12 @@ function measureSandboxData(values, options = {}) {
30404
30404
  if (descriptor !== void 0 && "value" in descriptor) arrayElements.push(descriptor.value);
30405
30405
  }
30406
30406
  } else {
30407
- for (const key of Object.getOwnPropertyNames(value)) {
30407
+ let keys2 = managedArray ? Object.getOwnPropertyNames(value) : Object.keys(value);
30408
+ const denseIndices = !managedArray && (arrayLength === 0 || keys2[arrayLength - 1] === String(arrayLength - 1));
30409
+ if (!managedArray && !denseIndices) keys2 = Object.getOwnPropertyNames(value);
30410
+ const keyCount = denseIndices ? arrayLength : keys2.length;
30411
+ for (let index = 0; index < keyCount; index += 1) {
30412
+ const key = keys2[index];
30408
30413
  if (key === "length") {
30409
30414
  if (!managedArray) break;
30410
30415
  continue;
@@ -45607,4 +45612,4 @@ export {
45607
45612
  FileSnapshotBackend,
45608
45613
  run
45609
45614
  };
45610
- //# sourceMappingURL=chunk-X2GWBJMN.js.map
45615
+ //# sourceMappingURL=chunk-J2YIA5RE.js.map