You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
I'm using Node 4.4.5. When trying to encrypt or decrypt Node crashes because it's trying to call slice on rl.history which hasn't been defined yet.
C:\Users\benhanna\Git\project\node_modules\config-leaf\index.js:34
rl.history = rl.history.slice(1);
^
TypeError: Cannot read property 'slice' of undefined
at C:\Users\benhanna\Git\project\node_modules\config-leaf\index.js:34:32
at Interface._onLine (readline.js:209:5)
at Interface.<anonymous> (readline.js:341:12)
at Array.forEach (native)
at Interface._normalWrite (readline.js:340:11)
at Socket.ondata (readline.js:87:10)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
The text was updated successfully, but these errors were encountered:
Well it's the same commands in the test file that are failing for me. I'm using Windows 10 with Git Bash as my terminal. When you use Git Bash it blows up with the error above. However, using decrypt or encrypt in Command Prompt works successfully. Should probably just put in a safety to initialize rl.history to an empty string if it's undefined.
I'm using Node 4.4.5. When trying to encrypt or decrypt Node crashes because it's trying to call
slice
onrl.history
which hasn't been defined yet.The text was updated successfully, but these errors were encountered: