summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js')
-rw-r--r--deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js b/deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js
index e4bfcf02dc..82598c8521 100644
--- a/deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js
+++ b/deps/npm/node_modules/readable-stream/lib/internal/streams/BufferList.js
@@ -1,8 +1,8 @@
'use strict';
-var Buffer = require('buffer').Buffer;
/*<replacement>*/
-var bufferShim = require('buffer-shims');
+
+var Buffer = require('safe-buffer').Buffer;
/*</replacement>*/
module.exports = BufferList;
@@ -50,9 +50,9 @@ BufferList.prototype.join = function (s) {
};
BufferList.prototype.concat = function (n) {
- if (this.length === 0) return bufferShim.alloc(0);
+ if (this.length === 0) return Buffer.alloc(0);
if (this.length === 1) return this.head.data;
- var ret = bufferShim.allocUnsafe(n >>> 0);
+ var ret = Buffer.allocUnsafe(n >>> 0);
var p = this.head;
var i = 0;
while (p) {