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)thrownewTypeError('must start with number, buffer, array or string');if(objinstanceofArrayBuffer){returnbinding.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