We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16fb1ce commit 297d8d0Copy full SHA for 297d8d0
benchmark/impls.js
@@ -4,7 +4,8 @@ const impls = readFileSync(__dirname + '/impls.txt', 'utf8')
4
.split('\n')
5
for (const impl of impls) {
6
if (impl.startsWith('lru-cache_')) {
7
- const LRUCache = require(impl)
+ const req = require(impl)
8
+ const LRUCache = req.LRUCache || req
9
exports[impl] = max => new LRUCache({ max })
10
} else if (impl.startsWith('mnemonist_')) {
11
MnemonistLRUMap = require(impl + '/lru-map-with-delete')
0 commit comments