-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add new URL(someUrl, undefined)
feature testing for URL polyfill
#656
Comments
|
Filed https://bugs.webkit.org/show_bug.cgi?id=216841 for |
Which test fails on Safari for URLSearchParams, so that 8699b9a#diff-6016a0a7725ceb1f68ed6ea1c7b96491 requires polyfill only for it? |
From URL specification, the URL constructor has an optional
base
parameter:From Web IDL spec, explicit passed
undefined
is treated as missing value:So that
new URL(text, undefined)
should be equivalent tonew URL(text)
, but which failed in Safari (tested in 13.0.1) by throwing aTypeError
:This should be a BUG in JavaScriptCore implementation, where in Chrome and Firefox it works properly:
Currently the
native-url
testing cannot detect this failure and may resulting a malfunctioning Safari nativeURL
being used even when this polyfill loaded.The text was updated successfully, but these errors were encountered: