Bump to v4.17.12.

This commit is contained in:
John-David Dalton
2019-07-09 13:46:20 -07:00
parent 349273409f
commit 51c827ffd9
11 changed files with 44 additions and 27 deletions

View File

@@ -1,5 +1,5 @@
/**
* Gets the value at `key`, unless `key` is "__proto__".
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
*
* @private
* @param {Object} object The object to query.
@@ -7,6 +7,10 @@
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
if (key === 'constructor' && typeof object[key] === 'function') {
return;
}
if (key == '__proto__') {
return;
}