You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.
When using new URL(a, b) with a not being a string, the code will crash, as it uses internally a.replace()
This breaks the code for transpiled es6 to es5 on IE11 (or example with the <iron-image> element).
It's also not in sync with the behaviour of modern browsers where new URL(undefined, 'https://example.com') == 'https://example.com/undefined' new URL(null, 'https://example.com') == 'https://example.com/null'
Quick fix would be to use in the polyfill: (''+a).replace()
The text was updated successfully, but these errors were encountered:
When using
new URL(a, b)
witha
not being a string, the code will crash, as it uses internallya.replace()
This breaks the code for transpiled es6 to es5 on IE11 (or example with the
<iron-image>
element).It's also not in sync with the behaviour of modern browsers where
new URL(undefined, 'https://example.com') == 'https://example.com/undefined'
new URL(null, 'https://example.com') == 'https://example.com/null'
Quick fix would be to use in the polyfill:
(''+a).replace()
The text was updated successfully, but these errors were encountered: