-
Notifications
You must be signed in to change notification settings - Fork 77
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 in object literals not supported in Edge (any version) #431
Comments
Are you using the compat build? Per https://www.npmjs.com/package/@fluent/bundle#compatibility, only the compat builds have the browser support matrix. |
Yep, switching to You might want to clarify the docs a little bit though, since this affects the current version of Edge, not just "legacy" browsers. Maybe change the
This would hopefully clarify that Edge needs special support. |
Spread in object literals are now supported from Edge 79 on, according to MDN and caniuse. However, this still makes many sites just show a blank page on Edge up to 18. Since these versions are still quite used, it would be good to turn on compat build be default or at least strongly advise using it. |
I removed the compat builds in the latest releases of all It also didn't feel right that we would be making the decision about the support matrix in the compat builds. I believe the decision should instead be made by developers using |
I'm going to close this issue. Please see my comment above for the rationale and for a possible fix if you need to support legacy browsers. Thanks! |
Spread in object literals is not currently supported in any version of the Microsoft Edge browser. Tested in Edge 18.18362 on Windows 10 1903 and in Edge 15.15254. According to #133, and CHANGELOG.md, Edge ≥ 15 should be supported. The error in the browser console is:
The file that caused the error is resource.js. The only other instance of a spread in an object is in reference_test.js which is unlikely to be ever used in the browser. Microsoft Edge is the only major browser to not support a spread operator in an object literal, but MDN still calls the feature experimental.
The text was updated successfully, but these errors were encountered: