We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b8f447 + e875f30 commit ea7b3d9Copy full SHA for ea7b3d9
1 file changed
lib/bus.js
@@ -483,7 +483,7 @@ class MessageBus extends EventEmitter {
483
}
484
485
_addMatch (match) {
486
- if (Object.prototype.hasOwnProperty.call(match, this._matchRules)) {
+ if (Object.prototype.hasOwnProperty.call(this._matchRules, match)) {
487
this._matchRules[match] += 1;
488
return Promise.resolve();
489
@@ -507,7 +507,7 @@ class MessageBus extends EventEmitter {
507
508
509
510
511
this._matchRules[match] -= 1;
512
if (this._matchRules[match] > 0) {
513
0 commit comments