jashkenas/underscore — pull request #1327 by brian-north (2013-11-04 02:56:47+00:00)
Title: Getter/setter-safe _.functions

The \_.functions method throws an error if the object contains defined properties with getters/setters. Wrapping the conditional block of the method in a try/catch block catches these errors and allows further parsing of the object. Since the properties that throw these errors in \_.isFunction are not functions _themselves_, it seems proper that they should not be included in the names array returned by \_.functions.