FIX path.dirname('/tmp') => '/'.
authorrentzsch <jwr.git@redshed.net>
Sun, 16 May 2010 19:29:29 +0000 (14:29 -0500)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 20 May 2010 17:16:09 +0000 (10:16 -0700)
commit36a45c4e0def497e3d1446057c1d91680d8bb259
tree61ad617c9b30f44eac3f0b047cc65f7aca0b89c3
parent022c0838480ddec334e85dd8a8ca7d376eb26d95
FIX path.dirname('/tmp') => '/'.

Previously path.dirname('/tmp') incorrectly returned '.'.

Unfortunately module.js incorrectly thinks dirname('/a/b/') should
yield '/a/b', so I can't strip trailing slashes yet. Once module.js
is fixed, then the commented-out code should be activated and a test
written for it.
lib/path.js
test/simple/test-path.js