Skip to content

Instantly share code, notes, and snippets.

@gkatsev
Last active September 6, 2017 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkatsev/a4091c4102fcbfd36e3864100a6ea2c5 to your computer and use it in GitHub Desktop.
Save gkatsev/a4091c4102fcbfd36e3864100a6ea2c5 to your computer and use it in GitHub Desktop.
undocumented breaking change in url.format
var url = require('url')
url.format({host: 'google.com', pathname: 'foo', slashes: true})
// > '//google.com/foo'
var url = require('url')
url.format({host: 'google.com', pathname: 'foo'})
// > '//google.com/foo'
var url = require('url')
url.format({host: 'google.com', pathname: 'foo'})
// > 'google.comfoo'
@gkatsev
Copy link
Author

gkatsev commented Sep 6, 2017

The issue nodejs/node#11103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment