@poe-platform/safe-js 0.1.116 → 0.1.117

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.
@@ -24935,14 +24935,27 @@ function getStringMember(value, property, budget) {
24935
24935
  name: `String#${property}`,
24936
24936
  ...property === "localeCompare" ? { length: 1 } : {},
24937
24937
  ...property === "isWellFormed" || property === "toWellFormed" ? { length: 0 } : {},
24938
- call: (args, context) => callStringMethod(
24939
- value,
24940
- property,
24941
- args,
24942
- budget,
24943
- context === void 0 ? void 0 : async (closure, closureArgs) => await closure.call(closureArgs, { ...context, thisValue: void 0 }),
24944
- context?.compilation
24945
- )
24938
+ call: async (args, context) => {
24939
+ const receiver = context?.thisValue;
24940
+ if (receiver === null || receiver === void 0) {
24941
+ throw new TypeError(`String#${property} requires a non-null receiver.`);
24942
+ }
24943
+ const retainedReceiver = {};
24944
+ budget.setRetainedValues(retainedReceiver, () => [receiver]);
24945
+ try {
24946
+ const string = await sandboxString(receiver, budget, context);
24947
+ return await callStringMethod(
24948
+ string,
24949
+ property,
24950
+ args,
24951
+ budget,
24952
+ (closure, closureArgs) => invokeBuiltinClosure(closure, closureArgs, budget, context, void 0),
24953
+ context?.compilation
24954
+ );
24955
+ } finally {
24956
+ budget.setRetainedValues(retainedReceiver, void 0);
24957
+ }
24958
+ }
24946
24959
  });
24947
24960
  }
24948
24961
  function getStringIndex(property) {
@@ -33283,4 +33296,4 @@ export {
33283
33296
  FileSnapshotBackend,
33284
33297
  run
33285
33298
  };
33286
- //# sourceMappingURL=chunk-VDFW3EKS.js.map
33299
+ //# sourceMappingURL=chunk-L7PHF62H.js.map