@poe-platform/safe-js 0.1.308 → 0.1.309

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.
@@ -14573,6 +14573,35 @@ function createFloat32ArrayPrototypes(budget, constructor) {
14573
14573
  construct: abstractCall
14574
14574
  });
14575
14575
  Object.defineProperty(materializeFunctionProperties(typedArray), "prototype", { value: shared, writable: false });
14576
+ Object.defineProperty(materializeFunctionProperties(typedArray), "of", {
14577
+ writable: true,
14578
+ configurable: true,
14579
+ value: createSandboxClosure({
14580
+ guest: true,
14581
+ sandbox: true,
14582
+ name: "of",
14583
+ length: 0,
14584
+ call: async (args, context) => {
14585
+ const target = context?.thisValue;
14586
+ if (!isSandboxClosure(target) || target.construct === void 0)
14587
+ throw new TypeError("TypedArray.of requires a constructor receiver.");
14588
+ let result;
14589
+ const release = retainValues(budget, () => [target, result, ...args]);
14590
+ try {
14591
+ result = await invokeBuiltinClosure(target, [args.length], budget, context, void 0, true);
14592
+ if (!isFloat32Array(result) || float32Storage(result).length < args.length)
14593
+ throw new TypeError("TypedArray.of constructor must return sufficient typed storage.");
14594
+ for (let index = 0; index < args.length; index++) {
14595
+ budget.visitNode();
14596
+ result[index] = await sandboxNumber(args[index], budget, context);
14597
+ }
14598
+ return result;
14599
+ } finally {
14600
+ release();
14601
+ }
14602
+ }
14603
+ })
14604
+ });
14576
14605
  Object.defineProperties(materializeFunctionProperties(constructor), {
14577
14606
  prototype: { value: prototype, writable: false },
14578
14607
  BYTES_PER_ELEMENT: { value: 4, writable: false, enumerable: false, configurable: false }
@@ -41607,4 +41636,4 @@ export {
41607
41636
  FileSnapshotBackend,
41608
41637
  run
41609
41638
  };
41610
- //# sourceMappingURL=chunk-F7WO3VT4.js.map
41639
+ //# sourceMappingURL=chunk-A5S5VD23.js.map