@poe-platform/safe-js 0.1.109 → 0.1.111

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.
@@ -24528,7 +24528,11 @@ function getMapMember(target, property, options) {
24528
24528
  }
24529
24529
  return createSandboxClosure({
24530
24530
  sandbox: true,
24531
- call: (args, context) => callMapMethod(target, property, args, options, context?.stack ?? []),
24531
+ call: (args, context) => {
24532
+ const receiver = context?.thisValue;
24533
+ if (!isSandboxMap(receiver)) throw new TypeError(`Map#${property} requires a Map receiver.`);
24534
+ return callMapMethod(receiver, property, args, options, context?.stack ?? []);
24535
+ },
24532
24536
  name: property
24533
24537
  });
24534
24538
  }
@@ -25130,7 +25134,11 @@ function getSetMember(target, property, options) {
25130
25134
  }
25131
25135
  return createSandboxClosure({
25132
25136
  sandbox: true,
25133
- call: (args, context) => callSetMethod(target, property, args, options, context?.stack ?? []),
25137
+ call: (args, context) => {
25138
+ const receiver = context?.thisValue;
25139
+ if (!isSandboxSet(receiver)) throw new TypeError(`Set#${property} requires a Set receiver.`);
25140
+ return callSetMethod(receiver, property, args, options, context?.stack ?? []);
25141
+ },
25134
25142
  name: property
25135
25143
  });
25136
25144
  }
@@ -33045,4 +33053,4 @@ export {
33045
33053
  FileSnapshotBackend,
33046
33054
  run
33047
33055
  };
33048
- //# sourceMappingURL=chunk-OCJ6MUNL.js.map
33056
+ //# sourceMappingURL=chunk-7AIY5C3F.js.map