mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
6fc5e95354
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>
2 lines
32 B
JavaScript
2 lines
32 B
JavaScript
module.exports = require('./');
|