maybe_filename_from_url_host: handle possible exception
commit7b6fb21fac39ca6453fc3735b3b1642f102da5d2
authorJohn Foerch <jjfoerch@earthlink.net>
Tue, 2 Nov 2010 00:45:11 +0000 (1 20:45 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Tue, 2 Nov 2010 00:45:11 +0000 (1 20:45 -0400)
tree3e005af4432fdd41431362b0a6f5ad171aa05d7e
parentf6b29d86b038fd7f69b8407953646c3ce7acf18c
maybe_filename_from_url_host: handle possible exception

An exception may be thrown for uris of schemes that have no host, such as
the 'about' scheme.  The uri object still has a 'host' getter, but it
throws when accessed.
modules/suggest-file-name.js