map: remove __proto__ check.

This commit is contained in:
Christopher Jeffrey 2017-01-12 12:40:50 -08:00
parent 9e0b10f314
commit f3a393668e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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) {