@poe-platform/safe-js 0.1.261 → 0.1.262

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.
@@ -8004,7 +8004,7 @@ function setSandboxPrototype(value, prototype, budget) {
8004
8004
  if (budget !== void 0 && intrinsicPrototypes.get(budget) === value && prototype !== null) {
8005
8005
  throw new TypeError("Object.prototype has an immutable null prototype.");
8006
8006
  }
8007
- if (!Array.isArray(value) && !isSandboxRegex(value) && !isSandboxMap(value) && !isSandboxSet(value) && !isPrototypeRecord(value) || prototype !== null && !Array.isArray(prototype) && !isSandboxMap(prototype) && !isSandboxSet(prototype) && !isPrototypeRecord(prototype)) {
8007
+ if (!Array.isArray(value) && !isSandboxRegex(value) && !isSandboxMap(value) && !isSandboxSet(value) && !isPrototypeRecord(value) || prototype !== null && !Array.isArray(prototype) && !isSandboxRegex(prototype) && !isSandboxMap(prototype) && !isSandboxSet(prototype) && !isPrototypeRecord(prototype)) {
8008
8008
  throw new TypeError(
8009
8009
  "Prototype links require supported sandbox objects."
8010
8010
  );
@@ -17450,7 +17450,7 @@ function forInKeys(object, budget) {
17450
17450
  for (let current = object; current !== null; current = getSandboxPrototype(current, budget)) {
17451
17451
  if (depth > 0) budget.visitNode();
17452
17452
  assertSandboxDataDepth(depth++);
17453
- const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
17453
+ const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxRegex(current) ? getRegexProperties(current) : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
17454
17454
  for (const key of Object.getOwnPropertyNames(properties)) {
17455
17455
  if (seen.has(key)) continue;
17456
17456
  seen.add(key);
@@ -17466,7 +17466,7 @@ function hasForInProperty(object, key, budget) {
17466
17466
  for (let current = object; current !== null; current = getSandboxPrototype(current, budget)) {
17467
17467
  if (depth > 0) budget.visitNode();
17468
17468
  assertSandboxDataDepth(depth++);
17469
- const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
17469
+ const properties = isGuestClosure(current) ? materializeFunctionProperties(current) : isSandboxClosure(current) ? current.properties ?? {} : isSandboxRegex(current) ? getRegexProperties(current) : isSandboxMap(current) || isSandboxSet(current) ? getCollectionProperties(current) : current;
17470
17470
  if (Object.hasOwn(properties, key)) return true;
17471
17471
  }
17472
17472
  return false;
@@ -40036,4 +40036,4 @@ export {
40036
40036
  FileSnapshotBackend,
40037
40037
  run
40038
40038
  };
40039
- //# sourceMappingURL=chunk-F4OZBPVV.js.map
40039
+ //# sourceMappingURL=chunk-LTZBKTUZ.js.map