Skip to content

test: add case for url.parse throwing a URIError

Hello, the url.parse function uses decodeURIComponent, which can throw a URIError, to parse the auth property of a URL. The example included here will test this path.

This PR also adds documentation on the possible errors that url.parse can throw. I'm happy to move this to a separate PR should this make things easier/cleaner.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

test, doc

Merge request reports

Loading