@bytecodealliance/jco 1.24.0 → 1.24.1
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.
|
Binary file
|
|
@@ -2632,7 +2632,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2632
2632
|
|
|
2633
2633
|
if (ctx.useDirectParams) {
|
|
2634
2634
|
if (ctx.params.length < 2) { throw new Error('expected at least two u32 arguments'); }
|
|
2635
|
-
|
|
2635
|
+
let offset = ctx.params[0];
|
|
2636
2636
|
if (typeof offset === 'bigint') { offset = Number(offset); }
|
|
2637
2637
|
if (!Number.isSafeInteger(offset)) { throw new Error('invalid offset'); }
|
|
2638
2638
|
const len = ctx.params[1];
|
package/obj/wasm-tools.js
CHANGED
|
@@ -2632,7 +2632,7 @@ function _lowerImportBackwardsCompat(args) {
|
|
|
2632
2632
|
|
|
2633
2633
|
if (ctx.useDirectParams) {
|
|
2634
2634
|
if (ctx.params.length < 2) { throw new Error('expected at least two u32 arguments'); }
|
|
2635
|
-
|
|
2635
|
+
let offset = ctx.params[0];
|
|
2636
2636
|
if (typeof offset === 'bigint') { offset = Number(offset); }
|
|
2637
2637
|
if (!Number.isSafeInteger(offset)) { throw new Error('invalid offset'); }
|
|
2638
2638
|
const len = ctx.params[1];
|
package/package.json
CHANGED