module: allow require('.')
authorMichaël Zasso <mic.besace@gmail.com>
Wed, 18 Mar 2015 07:38:00 +0000 (08:38 +0100)
committerRoman Reiss <me@silverwind.io>
Fri, 20 Mar 2015 17:17:25 +0000 (18:17 +0100)
commit6fc5e953547bfbdf97bc380d4bfc471e3378fad9
tree073ec7dbf11d7775aebe2976998885697d18b0e7
parenta0d32ff5aebdf14e06291e9b179dfb47d4604c63
module: allow require('.')

Previously, the minimal argument to require the current directory was
require('./'). This commits allows to skip the trailing slash.

Fixes: https://github.com/iojs/io.js/issues/1178
PR-URL: https://github.com/iojs/io.js/pull/1185
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
Reviewed-By: Christian Tellnes <christian@tellnes.no>
Reviewed-By: Roman Reiss <me@silverwind.io>
lib/module.js
test/fixtures/module-require/relative/dot-slash.js [new file with mode: 0644]
test/fixtures/module-require/relative/dot.js [new file with mode: 0644]
test/fixtures/module-require/relative/index.js [new file with mode: 0644]
test/parallel/test-require-extensions-main.js