length property value for functions with parameter enhancements

Dean Landolt dean at deanlandolt.com
Thu Sep 1 08:55:44 PDT 2011


On Thu, Sep 1, 2011 at 11:38 AM, Rick Waldron <waldron.rick at gmail.com>wrote:

> Just want to clarify that neither jQuery nor its selector engine Sizzle
> have any occurrences of function arity checking via the function length
> property. Both codebases have occurrences of arguments.length checking


FTR this kind of arity checking is pretty common in the node.js world:
https://github.com/kriszyp/promised-io/blob/master/promise.js#L619
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110901/175fa8fc/attachment-0001.html>


More information about the es-discuss mailing list