order of stats during require broken #588

Closed
ry opened this Issue Jan 27, 2011 · 1 comment

2 participants

@ry
ry commented Jan 27, 2011

1ac133e#commitcomment-253030

This patch changes the behavior of the loading system, I am not sure if it was intended but if you have file.js test.js test/index.js files and you require('./test/') from file.js the behavior before the patch was to find test/index.js after this it hits the test.js instead.
https://gist.github.com/798551

@isaacs

A module ID with a trailing slash must be a dir.

require('./foo/') should not try to load './foo.js'. It should only
look for ./foo/index.js

Closed by 6cdeb3b

@coolaj86 coolaj86 pushed a commit that referenced this issue Apr 15, 2011
@isaacs isaacs A module ID with a trailing slash must be a dir.
require('./foo/') should not try to load './foo.js'.  It should only
look for ./foo/index.js

Closes GH-588
6cdeb3b
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment