mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +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
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@@ -6617,14 +6617,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var value = object[key];
|
return object[key];
|
||||||
|
|
||||||
if (key == 'prototype' &&
|
|
||||||
value === objectProto) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user