Bump to v4.17.12.

This commit is contained in:
John-David Dalton
2019-07-09 14:01:55 -07:00
parent 3e273e915d
commit 793f983629
13 changed files with 181 additions and 161 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;
}