path: reduce type checking on some methods
authorcjihrig <cjihrig@gmail.com>
Fri, 20 Mar 2015 00:55:31 +0000 (20:55 -0400)
committercjihrig <cjihrig@gmail.com>
Fri, 20 Mar 2015 01:11:12 +0000 (21:11 -0400)
commit8de78e470d2e291454e2184d7f206c70d4cb8c97
tree7672a4f743615519cae499c089137460ccfdc0ed
parent3b9eab9779262f496e22b205db5a7e1a257706e4
path: reduce type checking on some methods

a465840313f548b913eb2bd8ea3d26c2ab5dcebb added strict type
checking for the methods in the path module. However, dirname(),
basename(), and extname() actually had some undocumented uses
in the wild. This commit loosens the type checking on those
methods.

Fixes: https://github.com/iojs/io.js/issues/1215
PR-URL: https://github.com/iojs/io.js/pull/1216
Reviewed-By: Rod Vagg <rod@vagg.org>
lib/path.js
test/parallel/test-path.js