TypeError: Unable to get property 'buffer' of undefined or null reference
at fromObject (buffer.js:112:3)
TypeError: must start with number, buffer, array or string
at fromObject (buffer.js:109:5)
if (obj == null)
throw new TypeError('must start with number, buffer, array or string');
if (obj instanceof ArrayBuffer) {
return binding.createFromArrayBuffer(obj);
}
In
nextbranchIf I run
new Buffer()I get the errorWhen the error used to be
In
fromObjectthe following check got lost in reworkhttps://github.com/nodejs/io.js/pull/1825/files#diff-196d056a936b6d2649721eb639e0442bL84
when buffer code went into
lib/internal/buffer_new.jshttps://github.com/nodejs/io.js/pull/1825/files#diff-c28ab5e2f9b7f2f9890ac44e7370af59R107