Skip to content

Commit

Permalink
refactor(Symbol_iterator): remove warning (#3409)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh authored Mar 8, 2018
1 parent 35abc9d commit bd28eaa
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/internal/symbol/iterator.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
export function getSymbolIterator(): symbol {
/* NOTE: Warning users that they don't have a Symbol.iterator
polyfill. We don't want to throw on this, because it's not required
by the library. However it will provide clues to users on older
browsers why things like `from(iterable)` doesn't work. */
if (typeof Symbol !== 'function' || !Symbol.iterator) {
console.warn('RxJS: Symbol.iterator does not exist, so things like from(iterable) won\'t work');
return '@@iterator' as any;
}

Expand Down

0 comments on commit bd28eaa

Please sign in to comment.