You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in the next code example new URL('/status?name=ryan', 'localhost:3000') resolves with URL Object, but it is incorrect behaviour. In real life it throws error
$ node
> new URL('/status?name=ryan', 'localhost:3000')Uncaught TypeError [ERR_INVALID_URL]: Invalid URL: /status?name=ryan at onParseError (internal/url.js:257:9) at new URL (internal/url.js:333:5) at repl:1:1 at Script.runInThisContext (vm.js:120:20) at REPLServer.defaultEval (repl.js:427:29) at bound (domain.js:429:14) at REPLServer.runBound [as eval] (domain.js:442:12) at REPLServer.onLine (repl.js:754:10) at REPLServer.emit (events.js:333:22) at REPLServer.EventEmitter.emit (domain.js:485:12) { input: '/status?name=ryan', code: 'ERR_INVALID_URL'}
Activity
doc: fix example of parsing request.url
doc: fix example of parsing request.url
doc: fix example of parsing request.url
doc: fix example of parsing request.url