diff --git a/lib/buffer.js b/lib/buffer.js index 4166724b732..90ff4319105 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -116,7 +116,7 @@ function fromObject(obj) { return b; } - if (obj == null) { + if (obj === null) { throw new TypeError('must start with number, buffer, array or string'); }