Skip to content
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

fix: throw on invalid URLs #54

Merged
merged 1 commit into from
Apr 6, 2020
Merged

fix: throw on invalid URLs #54

merged 1 commit into from
Apr 6, 2020

Conversation

acifani
Copy link
Contributor

@acifani acifani commented Apr 6, 2020

Throw when provided with invalid url without a base, e.g.

new URL('something')

NB: I have only tested this manually in IE11 and Chrome 49, not sure on how to proceed with running the project's test suites. Help is very welcome

Fixes #35
Fixes #37

@lifaon74 lifaon74 merged commit 83fac77 into lifaon74:master Apr 6, 2020
@lifaon74
Copy link
Owner

lifaon74 commented Apr 6, 2020

Thanks to you. Nice trick by the way ;)

@dvelasquez
Copy link

@lifaon74 Hey, I think this package with this fix has not been released yet. Can you please upload the new package to npm?

Thanks!!!

zhbhun added a commit to zhbhun/next.js that referenced this pull request May 12, 2020
…e-js/features/url

url-polyfill does not throw on invalid URLs(lifaon74/url-polyfill#54).

fix: [9851](vercel#9851)
@odimodugno
Copy link

Hi can you upload the package on npm with the fix pls?

lifaon74 added a commit that referenced this pull request May 13, 2020
@lifaon74
Copy link
Owner

v1.1.9 released. sorry for the delay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Constructor should throw when no base is given for relative URLs Invalid URLs don't throw errors in IE
4 participants