Skip to content

Commit

Permalink
fix(RxJS): each instance of RxJS now has a unique Subscriber symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Sep 25, 2018
1 parent 50ee0a7 commit 0972c56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
13 changes: 0 additions & 13 deletions spec/symbol/rxSubscriber-spec.ts

This file was deleted.

6 changes: 3 additions & 3 deletions src/internal/symbol/rxSubscriber.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @deprecated do not use, this is no longer checked by RxJS internals */
export const rxSubscriber =
(typeof Symbol === 'function' && typeof Symbol.for === 'function')
? Symbol.for('rxSubscriber')
: '@@rxSubscriber';
typeof Symbol === 'function'
? Symbol('rxSubscriber')
: '@@rxSubscriber_' + Math.random();

/**
* @deprecated use rxSubscriber instead
Expand Down

0 comments on commit 0972c56

Please sign in to comment.