This project demonstrates an error that occurs in Internet Explorer 11 (IE 11) involving @reach/router and polyfill.io.
Polyfill.io script:
The error occurs on line 105 of this script:
var desc = Object.getOwnPropertyDescriptor(from, nextKey);
The error is:
SCRIPT445: Object doesn't support this action
Data:
from
= [object DispHTMLLocation]
nextKey
="hash"
Discussion:
If I debug this in IE 11, and change the exception behavior to "break on unhandled exceptions", the debugger will break on line 105, as described above. What's perplexing, however, is that if I mouse over Object.getOwnPropertyDescriptor
, a tooltip appears showing the definition of the function, so I don't know why IE 11 is saying the action is not supported. What action is the error referring to? Also, according to the MDN browser compatibility table, Object.getOwnPropertyDescriptor
is supported starting with IE 8.
Images from the debugger: