mirror of
https://github.com/chjj/blessed.git
synced 2026-02-06 11:22:09 +00:00
fix uncaught error throwing.
This commit is contained in:
parent
7a8a0d2591
commit
b7fa80cc2e
@ -77,8 +77,7 @@ EventEmitter.prototype._emit = function(type, args) {
|
||||
|
||||
if (!handler) {
|
||||
if (type === 'error') {
|
||||
throw new Error('Unhandled error event: '
|
||||
+ JSON.stringify(slice.call(arguments)));
|
||||
throw new args[0];
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user