feat(Symbol.iterator): no longer polyfilled#3389
Merged
benlesh merged 1 commit intoReactiveX:masterfrom Mar 7, 2018
Merged
Conversation
Member
Author
|
NOTE: The only worry I have with this change is that we're no longer watching for the weirdness with older versions of Firefox.. however that should be covered by a proper polyfill. |
Generated by 🚫 dangerJS |
jayphelps
suggested changes
Mar 7, 2018
src/internal/symbol/iterator.ts
Outdated
| 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 (!Symbol.iterator) { |
Member
There was a problem hiding this comment.
I believe Symbol.iterator and Symbol itself were both defined in ES2015 so if Symbol.iterator isn't available it's likely that Symbol isn't either and this may error. 🤔
src/internal/symbol/iterator.ts
Outdated
|
|
||
| export const iterator = symbolIteratorPonyfill(root); | ||
| /** The native Symbol.iterator instance or a string */ | ||
| export const iterator = Symbol.iterator || '@@iterator'; |
Member
There was a problem hiding this comment.
Same issue here Uncaught ReferenceError: Symbol is not defined
BREAKING CHANGE: We are no longer polyfilling `Symbol.iterator`. That would be done by a proper polyfilling library
1b14541 to
a3c8585
Compare
jayphelps
reviewed
Mar 7, 2018
| 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 (!Symbol || !Symbol.iterator) { |
Member
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: We are no longer polyfilling
Symbol.iterator. That would be done by a proper polyfilling library