Skip to content

Commit 2802a50

Browse files
authored
Update diagnostics_channel.js
1 parent 68b5744 commit 2802a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/diagnostics_channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function wrapStoreRun(store, data, next, transform = defaultTransform) {
9999
class ActiveChannel {
100100
subscribe(subscription) {
101101
validateFunction(subscription, 'subscription');
102-
this._subscribers = [];
102+
this._subscribers = ArrayPrototypeSlice(this._subscribers);
103103
ArrayPrototypePush(this._subscribers, subscription);
104104
channels.incRef(this.name);
105105
}

0 commit comments

Comments
 (0)