os: remove trailing slash from os.tmpdir()
authorChristian Tellnes <christian@tellnes.no>
Fri, 6 Feb 2015 22:27:22 +0000 (23:27 +0100)
committerChris Dickinson <christopher.s.dickinson@gmail.com>
Tue, 28 Apr 2015 21:38:14 +0000 (14:38 -0700)
commitb57cc51d8d3f4ad279591ae8fa6584ee22773b97
treefa4a560d579c949c4e9cae4838ac92a120ee8e47
parent1bcdf46ca750a1e2ede7824ad5359d501675c430
os: remove trailing slash from os.tmpdir()

This commit makes `os.tmpdir()` behave consistently on all platforms. It
changes `os.tmpdir()` to always return a path without trailing slash.

Semver: major
Fixes: https://github.com/iojs/io.js/issues/715
PR-URL: https://github.com/iojs/io.js/pull/747
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
lib/os.js
test/parallel/test-os.js