Fix test fails in Node 0.12.

This commit is contained in:
jdalton
2015-04-10 15:40:26 -07:00
parent a927bab6b3
commit 6eb1b98975

View File

@@ -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.