"cb() never called!" error sporadicly #1602

Closed
ssoria opened this Issue Oct 26, 2011 · 1 comment

Comments

Projects
None yet
2 participants

ssoria commented Oct 26, 2011

Seeing the error sporadically. Root caused to a case of variable being used before initialized. Specifically variable i in loadPrefix of npm.js:333. In some rare cases, the calls to findPrefix->cb->mkdir->next were happening synchronously, which meant by the time next was called, i was still undefined. Pull request containing the fix will be linked shortly.

@ssoria ssoria added a commit to ssoria/npm that referenced this issue Oct 26, 2011

@ssoria ssoria Close #1602 Initialize i before use 7368a5b

ssoria commented Oct 26, 2011

I think I did this wrong. Sorry about opening an issue and a pull request. isaacs#1603

ssoria closed this Oct 26, 2011

ssoria reopened this Oct 26, 2011

isaacs closed this in 033a839 Oct 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment