Commit 66877216 authored by Petka Antonov's avatar Petka Antonov
Browse files

url: fix treatment of some values as non-empty

In addition to null, undefined and the empty string
are treated as empty (removing the component from the url).

The string '#' is treated same as empty values when
setting .hash.

The string '?' is treated same as empty values when
setting .search.

PR-URL: https://github.com/iojs/io.js/pull/1589
Fixes: https://github.com/iojs/io.js/issues/1588


Reviewed-By: default avatarRoman Reiss <me@silverwind.io>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent dbdd81a9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment