fix: add code comment

This commit is contained in:
Nolan Lawson 2021-04-10 12:52:55 -07:00
parent e4e299f9a6
commit 3a539e2d69
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import { isEmojiSupported, setCacheHandler } from 'is-emoji-supported'
import { QuickLRU } from '../_thirdparty/quick-lru/quick-lru'
// avoid recomputing emoji support over and over again
// use our own LRU since the built-in one grows forever, which is a small memory leak, but still
setCacheHandler(new QuickLRU({ maxSize: 500 }))
export const testEmojiSupported = isEmojiSupported