mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Remove prototype property check in safeGet().
This commit is contained in:
11
lodash.js
11
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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user