@poe-platform/safe-js 0.1.312 → 0.1.313
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.
- package/dist/safe-js/chunks/{chunk-UKPTA2FY.js → chunk-HUG5DIKM.js} +41 -24
- package/dist/safe-js/chunks/{chunk-UKPTA2FY.js.map → chunk-HUG5DIKM.js.map} +3 -3
- package/dist/safe-js/chunks/{chunk-DXPIMJKO.js → chunk-Y6XY6F5K.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- /package/dist/safe-js/chunks/{chunk-DXPIMJKO.js.map → chunk-Y6XY6F5K.js.map} +0 -0
|
@@ -14878,29 +14878,46 @@ function getFloat32Member(value, property, budget) {
|
|
|
14878
14878
|
throw new TypeError(`Float32Array#${key} requires a Float32Array receiver.`);
|
|
14879
14879
|
const storage2 = float32Storage(receiver);
|
|
14880
14880
|
if (key === "set") {
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14895
|
-
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
|
|
14899
|
-
throw new
|
|
14900
|
-
|
|
14901
|
-
|
|
14902
|
-
|
|
14903
|
-
|
|
14881
|
+
return (async () => {
|
|
14882
|
+
const [source, offsetValue = 0] = args;
|
|
14883
|
+
const bridge = {
|
|
14884
|
+
...context,
|
|
14885
|
+
stack: context?.stack ?? [],
|
|
14886
|
+
thisValue: receiver,
|
|
14887
|
+
getProperty: context?.getProperty ?? ((value2, property2) => {
|
|
14888
|
+
const descriptor2 = getSandboxPropertyDescriptor(value2, property2, budget);
|
|
14889
|
+
return descriptor2 === void 0 ? getSandboxDataProperty(value2, property2, budget) : readPropertyDescriptor(descriptor2, value2, bridge);
|
|
14890
|
+
}),
|
|
14891
|
+
invokeClosure: context?.invokeClosure ?? ((callee, values, thisValue, construct) => invokeBuiltinClosure(callee, values, budget, context, thisValue, construct))
|
|
14892
|
+
};
|
|
14893
|
+
let current;
|
|
14894
|
+
let sourceObject;
|
|
14895
|
+
const release = retainValues(budget, () => [receiver, sourceObject, current, ...args]);
|
|
14896
|
+
try {
|
|
14897
|
+
const number = await sandboxNumber(offsetValue, budget, bridge);
|
|
14898
|
+
const offset = Number.isNaN(number) ? 0 : Math.trunc(number);
|
|
14899
|
+
if (offset < 0) throw new RangeError("Float32Array#set offset is out of bounds.");
|
|
14900
|
+
if (source === null || source === void 0) throw new TypeError("Float32Array#set requires a non-null source.");
|
|
14901
|
+
let length2;
|
|
14902
|
+
if (isFloat32Array(source)) length2 = float32Storage(source).length;
|
|
14903
|
+
else {
|
|
14904
|
+
sourceObject = typeof source === "object" ? source : createSandboxBox(source);
|
|
14905
|
+
current = await bridge.getProperty(sourceObject, "length");
|
|
14906
|
+
const size = await sandboxNumber(current, budget, bridge);
|
|
14907
|
+
length2 = Number.isNaN(size) || size <= 0 ? 0 : Math.min(Math.trunc(size), Number.MAX_SAFE_INTEGER);
|
|
14908
|
+
}
|
|
14909
|
+
if (offset + length2 > storage2.length) throw new RangeError("Float32Array#set source is out of bounds.");
|
|
14910
|
+
if (isFloat32Array(source)) Float32Array.prototype.set.call(receiver, source, offset);
|
|
14911
|
+
else for (let index = 0; index < length2; index++) {
|
|
14912
|
+
budget.visitNode();
|
|
14913
|
+
current = await bridge.getProperty(sourceObject, String(index));
|
|
14914
|
+
receiver[offset + index] = await sandboxNumber(current, budget, bridge);
|
|
14915
|
+
}
|
|
14916
|
+
return void 0;
|
|
14917
|
+
} finally {
|
|
14918
|
+
release();
|
|
14919
|
+
}
|
|
14920
|
+
})();
|
|
14904
14921
|
}
|
|
14905
14922
|
const start = relativeIndex(args[0], storage2.length, 0);
|
|
14906
14923
|
const end = relativeIndex(args[1], storage2.length, storage2.length);
|
|
@@ -41792,4 +41809,4 @@ export {
|
|
|
41792
41809
|
FileSnapshotBackend,
|
|
41793
41810
|
run
|
|
41794
41811
|
};
|
|
41795
|
-
//# sourceMappingURL=chunk-
|
|
41812
|
+
//# sourceMappingURL=chunk-HUG5DIKM.js.map
|