GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — module: fix resolution of filename with trailing slash by targos · Pull Request #6215 · nodejs/node Conversation
|
|
I added a test in a separate commit but I'm not sure it's very useful. If the fixtures are removed by accident, the test would still pass. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
LGTM |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Does this resolve issues with |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Currently in node 6 (RC2) the `require('../')` breaks with the below error:
```
module.js:128
for (var i = 0; i < exts.length; i++) {
^
TypeError: Cannot read property 'length' of undefined
at tryExtensions (module.js:128:27)
at tryPackage (module.js:107:10)
at Function.Module._findPath (module.js:182:18)
at Function.Module._resolveFilename (module.js:434:25)
at Function.Module._load (module.js:384:25)
at Module.require (module.js:464:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/Users/XXXX/Documents/Personal/Projects/XXXXX/node_modules/mocha/bin/_mocha:12:11)
at Module._compile (module.js:539:32)
at Object.Module._extensions..js (module.js:548:10)
```
Changing to `require('./../lib/mocha')` resolves the issue.
|
LGTM if CI is ok: https://ci.nodejs.org/job/node-test-pull-request/2275/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
If you want to guard against that, perhaps you can either:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is this ready to land? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
citgm: https://ci.nodejs.org/job/thealphanerd-smoker/200/ (running because this touches module) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A recent optimization of module loading performance [1] forgot to check that extensions were set in a certain code path. [1] nodejs@ae18bbe Fixes: nodejs#6214
|
I consolidated the test. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CI is green but there are a couple of CITGM failures. It's not clear if they're related but I doubt it. The failure here looks like it's related to the recent realpath changes. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There has been a flury of activity on master. I'm running citgm on the head of master to see if these breakages are related to something else |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
New CI: https://ci.nodejs.org/job/node-test-pull-request/2343/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
So funny enough... without out this fix master is even more broken.... lol |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Indeed. if the new CI comes up green I'll be getting this landed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A recent optimization of module loading performance [1] forgot to check that extensions were set in a certain code path. [1] ae18bbe Fixes: #6214 PR-URL: #6215 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
|
Landed in 75487f0 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
A recent optimization of module loading performance [1] forgot to check that extensions were set in a certain code path. [1] nodejs@ae18bbe Fixes: nodejs#6214 PR-URL: nodejs#6215 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
A recent optimization of module loading performance [1] forgot to check that extensions were set in a certain code path. [1] ae18bbe Fixes: #6214 PR-URL: #6215 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Brian White <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
module resolution can fail with trailing slash
There was an error while loading. Please reload this page.