diff --git a/lib/wasm-parser.mjs b/lib/wasm-parser.mjs index 445c8da..fb43849 100644 --- a/lib/wasm-parser.mjs +++ b/lib/wasm-parser.mjs @@ -4297,9 +4297,9 @@ var require_lib7 = __commonJS({ } }); -// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/bits.js +// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bits.js var require_bits = __commonJS({ - "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/bits.js"(exports) { + "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bits.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -4387,9 +4387,9 @@ var require_bits = __commonJS({ } }); -// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/bufs.js +// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bufs.js var require_bufs = __commonJS({ - "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/bufs.js"(exports) { + "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bufs.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true @@ -4430,7 +4430,7 @@ var require_bufs = __commonJS({ if (result) { bufPool[length] = void 0; } else { - result = new Buffer(length); + result = Buffer.alloc(length); } result.fill(0); return result; @@ -4518,9 +4518,9 @@ var require_bufs = __commonJS({ } }); -// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/leb.js +// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/leb.js var require_leb = __commonJS({ - "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/leb.js"(exports) { + "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/leb.js"(exports) { "use strict"; function _typeof(obj) { "@babel/helpers - typeof"; @@ -4768,9 +4768,9 @@ var require_leb = __commonJS({ } }); -// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/index.js +// node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/index.js var require_lib8 = __commonJS({ - "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6/node_modules/@webassemblyjs/leb128/lib/index.js"(exports) { + "node_modules/.pnpm/@webassemblyjs+leb128@1.11.6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/index.js"(exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true diff --git a/package.json b/package.json index 491b751..1ced0a8 100644 --- a/package.json +++ b/package.json @@ -76,7 +76,8 @@ "packageManager": "pnpm@8.14.1", "pnpm": { "patchedDependencies": { - "@webassemblyjs/helper-wasm-bytecode@1.11.6": "patches/@webassemblyjs__helper-wasm-bytecode@1.11.6.patch" + "@webassemblyjs/helper-wasm-bytecode@1.11.6": "patches/@webassemblyjs__helper-wasm-bytecode@1.11.6.patch", + "@webassemblyjs/leb128@1.11.6": "patches/@webassemblyjs__leb128@1.11.6.patch" } } } \ No newline at end of file diff --git a/patches/@webassemblyjs__leb128@1.11.6.patch b/patches/@webassemblyjs__leb128@1.11.6.patch new file mode 100644 index 0000000..981a1d7 --- /dev/null +++ b/patches/@webassemblyjs__leb128@1.11.6.patch @@ -0,0 +1,13 @@ +diff --git a/lib/bufs.js b/lib/bufs.js +index f9a176ed87d84c833d2867bf9cf1e79d2d41823f..1ea71634e17fabfd15bce95f17894dfb7d9a4862 100644 +--- a/lib/bufs.js ++++ b/lib/bufs.js +@@ -98,7 +98,7 @@ function alloc(length) { + if (result) { + bufPool[length] = undefined; + } else { +- result = new Buffer(length); ++ result = Buffer.alloc(length); + } + + result.fill(0); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index af00b4a..c7a766f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ patchedDependencies: '@webassemblyjs/helper-wasm-bytecode@1.11.6': hash: 2yqg2jtg6wn6u6w2h6qfarflum path: patches/@webassemblyjs__helper-wasm-bytecode@1.11.6.patch + '@webassemblyjs/leb128@1.11.6': + hash: irpstnnlcpe4xzsb345am6kfk4 + path: patches/@webassemblyjs__leb128@1.11.6.patch dependencies: magic-string: @@ -1186,11 +1189,12 @@ packages: '@xtuc/ieee754': 1.2.0 dev: true - /@webassemblyjs/leb128@1.11.6: + /@webassemblyjs/leb128@1.11.6(patch_hash=irpstnnlcpe4xzsb345am6kfk4): resolution: {integrity: sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ==} dependencies: '@xtuc/long': 4.2.2 dev: true + patched: true /@webassemblyjs/utf8@1.11.6: resolution: {integrity: sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA==} @@ -1203,7 +1207,7 @@ packages: '@webassemblyjs/helper-api-error': 1.11.6 '@webassemblyjs/helper-wasm-bytecode': 1.11.6(patch_hash=2yqg2jtg6wn6u6w2h6qfarflum) '@webassemblyjs/ieee754': 1.11.6 - '@webassemblyjs/leb128': 1.11.6 + '@webassemblyjs/leb128': 1.11.6(patch_hash=irpstnnlcpe4xzsb345am6kfk4) '@webassemblyjs/utf8': 1.11.6 dev: true