Files
flipper/patches/adbkit-logcat+2.0.1.patch
Michel Weststrate b2cf34bc2f Eliminate buffer deprecation warning
Summary: Fixed deprecated Buffer warning that is shown at startup

Reviewed By: passy

Differential Revision: D18272158

fbshipit-source-id: ca932b1ff76f15e5563e21de66463a47616600d9
2019-11-04 09:21:59 -08:00

14 lines
499 B
Diff

diff --git a/node_modules/adbkit-logcat/lib/logcat/parser/binary.js b/node_modules/adbkit-logcat/lib/logcat/parser/binary.js
index 12fa8ec..e122933 100644
--- a/node_modules/adbkit-logcat/lib/logcat/parser/binary.js
+++ b/node_modules/adbkit-logcat/lib/logcat/parser/binary.js
@@ -10,7 +10,7 @@ const HEADER_SIZE_MAX = 100
class Binary extends EventEmitter {
constructor(options) {
super(options)
- this.buffer = new Buffer(0)
+ this.buffer = Buffer.alloc(0)
}
parse(chunk) {