From 3b199c30e037fba857c6ca5cfac824bfc48e8de9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico?= Date: Fri, 30 Nov 2018 13:09:58 -0300 Subject: [PATCH] Remove checks for the Map existence (#4091) --- .internal/MapCache.js | 3 +-- .internal/Stack.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.internal/MapCache.js b/.internal/MapCache.js index 0a78682f4..0bc511c8b 100644 --- a/.internal/MapCache.js +++ b/.internal/MapCache.js @@ -1,6 +1,5 @@ import Hash from './Hash.js' -import ListCache from './ListCache.js' /** * Gets the data for `map`. @@ -60,7 +59,7 @@ class MapCache { this.size = 0 this.__data__ = { 'hash': new Hash, - 'map': new (Map || ListCache), + 'map': new Map, 'string': new Hash } } diff --git a/.internal/Stack.js b/.internal/Stack.js index e5f4ce94f..ee3afddcc 100644 --- a/.internal/Stack.js +++ b/.internal/Stack.js @@ -77,7 +77,7 @@ class Stack { let data = this.__data__ if (data instanceof ListCache) { const pairs = data.__data__ - if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) { + if (pairs.length < LARGE_ARRAY_SIZE - 1) { pairs.push([key, value]) this.size = ++data.size return this