Skip to content

Commit 0972c56

Browse files
committed
fix(RxJS): each instance of RxJS now has a unique Subscriber symbol
1 parent 50ee0a7 commit 0972c56

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

spec/symbol/rxSubscriber-spec.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/internal/symbol/rxSubscriber.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @deprecated do not use, this is no longer checked by RxJS internals */
22
export const rxSubscriber =
3-
(typeof Symbol === 'function' && typeof Symbol.for === 'function')
4-
? Symbol.for('rxSubscriber')
5-
: '@@rxSubscriber';
3+
typeof Symbol === 'function'
4+
? Symbol('rxSubscriber')
5+
: '@@rxSubscriber_' + Math.random();
66

77
/**
88
* @deprecated use rxSubscriber instead

0 commit comments

Comments
 (0)