Hey group,

Bruno Jouhier, 2012-08-23 22:45:
> fs: stability 3 (Stable) => Backwards compatibility is guaranteed.

How about this:

if (callback.length > 1) {
    callback(err, res);
} else {
    callback(res);
}

Would that be okay? Might be an issue if the callback is declared
without parameters and uses the arguments variable instead. With the
code above old code would continue to work, but new code using only the
arguments array would be surprised by only getting one parameter.

Greetings,

Dennis

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to