Summary: Fixed deprecated Buffer warning that is shown at startup Reviewed By: passy Differential Revision: D18272158 fbshipit-source-id: ca932b1ff76f15e5563e21de66463a47616600d9
14 lines
499 B
Diff
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) {
|