documentcloud/underscore — pull request #1168 by alex-seville (2013-06-28 01:56:19+00:00)
Title: Wrapping property access in _.functions with try-catch

Property access in _.functions isn't guaranteed to be safe (see example below/in test), so wrapping the code in try/catch can avoid an error.

i.e.
`var obj = {};
Object.defineProperty(obj,'bad_property', {
get: function () { throw new Error(); },
enumerable: true
});
_.functions(obj);
`