transpiled version of {...window.location}
doesn't work in IE 11
#10233
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Current Behavior
Using
window.location
in an object spread causes an error in IE 11.E.g., if you open https://hypnosphi.github.io/repro-babel-location-ie/ in IE:
Input Code
https://github.com/Hypnosphi/repro-babel-location-ie
Expected behavior/code
No error, a copy of location object logged to console
Babel Configuration (.babelrc, package.json, cli command)
https://github.com/Hypnosphi/repro-babel-location-ie/blob/master/.babelrc
Environment
Possible Solution
Don't rely on native
getOwnPropertyDescriptor
as it's buggy in IEAdditional context/Screenshots
Problem doesn't reproduce if I enforce
@babel/helpers
versions to be7.5.1
: Hypnosphi/repro-babel-location-ie@3cecfd7It's probably introduced by #10171 (ironically)
The text was updated successfully, but these errors were encountered: