New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spread transformation requires Symbol.iterator now #9277
Comments
Hey @clshortfuse! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
@nicolo-ribaudo I'm not sure this is the same issue, or perhaps I'm just being too specific. #7597 targets This is just talking about the regression in |
I can leave this open if you prefer, just in case someone else has the same problem to avoid another issue. |
Getting this issue: babel/babel#9277 Which may be fixed when this PR is merged: babel/babel#8947
Getting this issue: babel/babel#9277 Which may be fixed when this PR is merged: babel/babel#8947
Getting this issue: babel/babel#9277 Which may be fixed when this PR is merged: babel/babel#8947
That PR only solved it for strings, not yet for arrays, or Maps or Sets (all builtins should work even without the presence of Symbol.iterator) |
Yeah sorry, I'm opening the new PR now. |
I'm leaving this open until the example in the original post works. |
The original example works when using the |
v7 Regression
Potential Commit/PR that introduced the regression
4da3f3b
Describe the regression
Transformation of
Spread
now requiresSymbol
Input Code
Babel Configuration (.babelrc, package.json, cli command)
Expected behavior/code
Before this commit, all you needed was a polyfill for
Array.from()
. NowSymbol.iterator
is needed as well. This breaks IE11.Environment
If, for some reason we still need
Symbol.iterator
, perhaps we perform theisIterable
check AFTER the prototype check for[object Arguments]
. That way, requiringSymbol.iterator
would be a last-ditch effort.The text was updated successfully, but these errors were encountered: