From f3a393668ec722c4b7c22b5aecc54a2d62369cb2 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 12 Jan 2017 12:40:50 -0800 Subject: [PATCH] map: remove __proto__ check. --- lib/utils/map.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/utils/map.js b/lib/utils/map.js index f6070383..a436c27c 100644 --- a/lib/utils/map.js +++ b/lib/utils/map.js @@ -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) {