Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

rl.history is undefined #6

@benthepoet

Description

@benthepoet

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions