url: fix error message of url.format
The previous code: 'Parameter "urlObj" must be an object, not ' + obj === null ? 'null' : typeof obj
actually equals ('Parameter "urlObj" must be an object, not ' + obj) === null ? 'null' : typeof obj
and its former test did not check the error message.
So the eventual error message we got is very weird, like: TypeError: undefined
.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
url