Commit bd016032 authored by Alex Kocharin's avatar Alex Kocharin
Browse files

readline: fix freeze if `keypress` event throws

`emitKeys` is a generator which emits `keypress` events in an infinite
loop. But if `keypress` event handler throws, the error stops the loop,
leaving generator in a broken state. So this patch restarts the generator
when an error occures.

PR-URL: https://github.com/nodejs/io.js/pull/2107


Reviewed-By: default avatarChristopher Monsanto <chris@monsan.to>
Reviewed-By: default avatarJeremiah Senkpiel <fishrock123@rocketmail.com>
parent cf14a242
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment