-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
LegacyIteratorNext issue with iterators. #906
Comments
|
This is with the overwritten
babel config : module: {
rules: [
{
test: /\.js$/,
exclude: /(node_modules)/,
use: {
loader: 'babel-loader',
options: {
comments: false,
presets: [
[
'@babel/preset-env',
{
corejs: '^3.6.3',
targets: {
browsers: [ 'chrome >= 26', 'edge >= 12', 'firefox >= 26', 'opera >= 26', 'safari >= 6', 'ie >= 8' ],
},
useBuiltIns: 'usage'
}
]
]
}
}
}
]
} |
A minimal project that reproduces the issue : https://github.com/romainmenke/legacy-iterator-next When visiting the page in Firefox 43 : update Also added a log to make sure |
Thank you @zloirock for taking the time to look into this and for having a fix so quickly! |
core-js/packages/core-js/internals/array-from.js
Line 27 in cc5b386
Run through babel + core-js.
Test in older firefox (43 has the error)
Result :
Page will freeze with an infinite loop.
Caused by : https://github.com/mozilla/gecko-dev/blob/0f254a30d684796bcc8b6e2a102a0095d25842bb/js/src/builtin/Iterator.js#L14
Hacky way to circumvent :
Unsure what changed.
We started seeing this error a couple of weeks ago but it might have always been there and maybe didn't get reported.
The text was updated successfully, but these errors were encountered: