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

core: make url-shim extend native URL module; add type checking #4712

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented Mar 8, 2018

adds type checking to URLShim. removes whatwg-url now that Node 8 is required (fixes #1186)

This moves us back to extending URL, which was removed in #1407. If anyone can remember why we did that at the timeplease let me know, but for now CLI and extension seem to work fine with this change.

@brendankenny
Copy link
Member Author

diff is much better at https://github.com/GoogleChrome/lighthouse/pull/4712/files?w=1. PR is primarily indentation into a class body :)

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This moves us back to extending URL, which was removed in #1407. If anyone can remember why we did that at the time

I don't. But...

That was the time Viewer was becoming a thing. And here was a es5 transpilation target in the viewer gulpfile at the time:
image

And that was removed in #2521. So yeah I think we're good.

@brendankenny
Copy link
Member Author

that's some nice archaeology!

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.

Use native Node URL parsing after Node 7.2.1 errors resolved
3 participants