From 6eb1b98975fe237f2016475ac408e90a6385a9be Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 10 Apr 2015 15:40:26 -0700 Subject: [PATCH] Fix test fails in Node 0.12. --- lodash.src.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index b44470634..b2b0bdcc5 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -4145,7 +4145,9 @@ * @param {Object} object The object to inspect. * @returns {Array} Returns the array of symbols. */ - var getSymbols = getOwnPropertySymbols || constant([]); + var getSymbols = !getOwnPropertySymbols ? constant([]) : function(object) { + return object == null ? [] : getOwnPropertySymbols(toObject(object)); + }; /** * Gets the view, applying any `transforms` to the `start` and `end` positions.