Closed iiroj closed 5 years ago
I don't think this is meant to actually store 0
(thus making it a Buffer of length 1), it is meant to be empty. So undefined
should be the right argument here.
With undefined
it also throws:
TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at new Buffer.from (buffer.js:183:11)
at handleFileLoad ([REDACTED]/babel-watch.js:391:22)
at handleFileLoad ([REDACTED]/babel-watch.js:214:5)
at ChildProcess.app.on ([REDACTED]/babel-watch.js:389:5)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at emit (internal/child_process.js:772:12)
at _combinedTickCallback (internal/process/next_tick.js:141:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
So maybe an empty array is the way to go?
Thanks, lgtm
I get an error like this when trying to run the latest
HEAD
version ofbabel-watch
: