path: add type checking for path inputs
authorcjihrig <cjihrig@gmail.com>
Sat, 14 Mar 2015 02:21:47 +0000 (22:21 -0400)
committercjihrig <cjihrig@gmail.com>
Mon, 16 Mar 2015 16:49:21 +0000 (12:49 -0400)
commiteb995d682201018b2a47c44e921848cfa31486a2
treeff61650847ff14524f8d88f7b2c40f21da2e9f3a
parenta28945b12876fea74091ba426eb636f8101262c9
path: add type checking for path inputs

This commit adds type checking of path inputs to exported methods
in the path module. The exception is _makeLong(), which seems to
explicitly support any data type.

Fixes: https://github.com/iojs/io.js/issues/1139
PR-URL: https://github.com/iojs/io.js/pull/1153
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
lib/path.js
test/parallel/test-path-parse-format.js
test/parallel/test-path.js