Remove prototype property check in safeGet().

This commit is contained in:
John-David Dalton
2018-08-31 15:22:17 -07:00
parent 2de676fe76
commit e5f9af5418

View File

@@ -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];
}
/**