map: remove __proto__ check.
This commit is contained in:
parent
9e0b10f314
commit
f3a393668e
@ -55,8 +55,6 @@ Map.prototype.values = function values() {
|
||||
*/
|
||||
|
||||
Map.prototype.get = function get(key) {
|
||||
if (key === '__proto__')
|
||||
return;
|
||||
return this.map[key];
|
||||
};
|
||||
|
||||
@ -67,8 +65,6 @@ Map.prototype.get = function get(key) {
|
||||
*/
|
||||
|
||||
Map.prototype.has = function has(key) {
|
||||
if (key === '__proto__')
|
||||
return false;
|
||||
return this.map[key] !== undefined;
|
||||
};
|
||||
|
||||
@ -84,9 +80,6 @@ Map.prototype.set = function set(key, value) {
|
||||
|
||||
assert(value !== undefined);
|
||||
|
||||
if (key === '__proto__')
|
||||
return;
|
||||
|
||||
this.map[key] = value;
|
||||
|
||||
if (item === undefined) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user