From e5f9af54189ce714f5e53084337f54e2fea1de8d Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 31 Aug 2018 15:22:17 -0700 Subject: [PATCH] Remove prototype property check in safeGet(). --- lodash.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lodash.js b/lodash.js index cfeb86902..bfc087eec 100644 --- a/lodash.js +++ b/lodash.js @@ -6605,7 +6605,7 @@ } /** - * Gets the value at `key`, unless `key` is "__proto__" or "prototype". + * Gets the value at `key`, unless `key` is "__proto__". * * @private * @param {Object} object The object to query. @@ -6617,14 +6617,7 @@ return; } - var value = object[key]; - - if (key == 'prototype' && - value === objectProto) { - return; - } - - return value; + return object[key]; } /**