You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few places where code flows like this:
try{// some code that produces `result` and can potentially throwcallback(null,result);// no error, return result}catch(error){callback(error);}
These are usually (if not always) bugs, because it wraps the callback call itself in the try block, and if that callback throws, it gets caught and called again, but this time with its own error.
There are a few places where code flows like this:
These are usually (if not always) bugs, because it wraps the
callbackcall itself in thetryblock, and if that callback throws, it gets caught and called again, but this time with its ownerror.For example:
node/lib/internal/fs/dir.js
Lines 150 to 160 in 06fb007
node/lib/internal/streams/compose.js
Lines 153 to 161 in 06fb007
Some of these bugs might be a good first issueIssues that are suitable for first-time contributors.
candidates.