-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Line 132 in b2d8bc6
| if (typeof buffer === "string") buffer = new Buffer(buffer); |
Line 228 in b2d8bc6
| this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate, intVal))); |
Line 234 in b2d8bc6
| this.appendStringBuf(new Buffer(String.fromCharCode(this.highSurrogate))); |
Line 237 in b2d8bc6
| this.appendStringBuf(new Buffer(String.fromCharCode(intVal))); |
Use Buffer constructor is currently depreciated :
It's not possible to deprecate Node.js ≤ 4.4.x and 5.0.0 — 5.9.x or maybe use a polyfill ?
Or maybe you can just use the alloc method to keep compatibility :
Lines 54 to 56 in b2d8bc6
| function alloc(size) { | |
| return Buffer.alloc ? Buffer.alloc(size) : new Buffer(size); | |
| } |
JstnMcBrd
Metadata
Metadata
Assignees
Labels
No labels