Skip to content

Commit cc0d7c0

Browse files
committed
feat(native): add buffer-alloc-unsafe to replacements
1 parent bae5200 commit cc0d7c0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

manifests/native.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,15 @@
549549
"compatKey": "javascript.builtins.BigInt"
550550
}
551551
},
552+
"Buffer.allocUnsafe": {
553+
"id": "Buffer.allocUnsafe",
554+
"type": "native",
555+
"url": {
556+
"type": "node",
557+
"id": "api/buffer.html#static-method-bufferallocunsafesize"
558+
},
559+
"nodeFeatureId": {"moduleName": "buffer"}
560+
},
552561
"Buffer.from": {
553562
"id": "Buffer.from",
554563
"type": "native",
@@ -2084,6 +2093,11 @@
20842093
"replacements": ["atob"]
20852094
},
20862095
"btoa": {"type": "module", "moduleName": "btoa", "replacements": ["btoa"]},
2096+
"buffer-alloc-unsafe": {
2097+
"type": "module",
2098+
"moduleName": "buffer-alloc-unsafe",
2099+
"replacements": ["Buffer.allocUnsafe"]
2100+
},
20872101
"buffer-crc32": {
20882102
"type": "module",
20892103
"moduleName": "buffer-crc32",

0 commit comments

Comments
 (0)