ajacksified / ajacksified/Mediator.js
Thread of execution depends on event's listeners.
Aperta
- Lingua principale
- JavaScript
- Stelle
- 460
- Fork
- 75
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
If we have a few of subscribers and one of those throws an exception, our thread of execution well be interrupted.
For example:
```
var hub = new Mediator();
hub.on('test', function func1() { console.log(1); });
hub.on('test', function func2() { throw new Error('test error'); });
hub.on('test', function func3() { console.log(3); });
hub.trigger('test');
console.log(4);
```
Actual result:
```
1
throwing exception
```
Expected result:
```
1
3
4
and throwing exception with stacktrace
```
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.