Bump to v4.17.12.

This commit is contained in:
John-David Dalton
2019-07-09 13:47:57 -07:00
parent db0dbd39a7
commit f42b961697
10 changed files with 59 additions and 40 deletions

View File

@@ -1,7 +1,7 @@
define([], function() {
/**
* 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.
@@ -9,6 +9,10 @@ define([], function() {
* @returns {*} Returns the property value.
*/
function safeGet(object, key) {
if (key === 'constructor' && typeof object[key] === 'function') {
return;
}
if (key == '__proto__') {
return;
}