-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patch to use
Buffer.alloc
instead of new Buffer
- Loading branch information
Showing
4 changed files
with
30 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4297,9 +4297,9 @@ var require_lib7 = __commonJS({ | |
} | ||
}); | ||
|
||
// node_modules/.pnpm/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/bits.js | ||
// node_modules/.pnpm/@[email protected].6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bits.js | ||
var require_bits = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/bits.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].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/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/bufs.js | ||
// node_modules/.pnpm/@[email protected].6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/bufs.js | ||
var require_bufs = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/bufs.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].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/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/leb.js | ||
// node_modules/.pnpm/@[email protected].6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/leb.js | ||
var require_leb = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/leb.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].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/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/index.js | ||
// node_modules/.pnpm/@[email protected].6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/index.js | ||
var require_lib8 = __commonJS({ | ||
"node_modules/.pnpm/@[email protected].6/node_modules/@webassemblyjs/leb128/lib/index.js"(exports) { | ||
"node_modules/.pnpm/@[email protected].6_patch_hash=irpstnnlcpe4xzsb345am6kfk4/node_modules/@webassemblyjs/leb128/lib/index.js"(exports) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,8 @@ | |
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@webassemblyjs/[email protected]": "patches/@[email protected]" | ||
"@webassemblyjs/[email protected]": "patches/@[email protected]", | ||
"@webassemblyjs/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.