Skip to content

Commit b2890ff

Browse files
authored
feat(native): add buffer-alloc to replacements (#791)
* feat(native): add buffer-alloc to replacements * fix: repair buffer-alloc merge conflict
1 parent d6218e1 commit b2890ff

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.alloc": {
553+
"id": "Buffer.alloc",
554+
"type": "native",
555+
"url": {
556+
"type": "node",
557+
"id": "api/buffer.html#static-method-bufferallocsize-fill-encoding"
558+
},
559+
"nodeFeatureId": {"moduleName": "buffer"}
560+
},
552561
"Buffer.allocUnsafe": {
553562
"id": "Buffer.allocUnsafe",
554563
"type": "native",
@@ -2102,6 +2111,11 @@
21022111
"replacements": ["atob"]
21032112
},
21042113
"btoa": {"type": "module", "moduleName": "btoa", "replacements": ["btoa"]},
2114+
"buffer-alloc": {
2115+
"type": "module",
2116+
"moduleName": "buffer-alloc",
2117+
"replacements": ["Buffer.alloc"]
2118+
},
21052119
"buffer-alloc-unsafe": {
21062120
"type": "module",
21072121
"moduleName": "buffer-alloc-unsafe",

0 commit comments

Comments
 (0)