Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/smart-buffer/build/smartbuffer.js')
-rw-r--r--deps/npm/node_modules/smart-buffer/build/smartbuffer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
index fc7d3aa0267..5353ae11d3f 100644
--- a/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
+++ b/deps/npm/node_modules/smart-buffer/build/smartbuffer.js
@@ -33,7 +33,7 @@ class SmartBuffer {
// Check for initial Buffer
}
else if (options.buff) {
- if (options.buff instanceof Buffer) {
+ if (Buffer.isBuffer(options.buff)) {
this._buff = options.buff;
this.length = options.buff.length;
}