blob: 7876d5b3e8265c547a194a3ac70ca3d3a5b33a28 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
'use strict'
// Buffer in node 4.x < 4.5.0 doesn't have working Buffer.from
// or Buffer.alloc, and Buffer in node 10 deprecated the ctor.
// .M, this is fine .\^/M..
let B = Buffer
/* istanbul ignore next */
if (!B.alloc) {
B = require('safe-buffer').Buffer
}
module.exports = B
|