path: reduce type checking on some methods
a4658403 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 #1215 (closed).
R=@rvagg