LokiJS icon indicating copy to clipboard operation
LokiJS copied to clipboard

`compoundEval` is not correctly implemented

Open Losses opened this issue 3 years ago • 0 comments

Prosperities value is passed to compoundEval here, the type signature of the value is ([keyof Document, isDesc] | keyof Document)[].

https://github.com/techfort/LokiJS/blob/25b9a33d57509717d43b4da06d92064f2b7a6c95/src/lokijs.js#L3364-L3369

But compoundEval only support [keyof Document, isDesc][]:

https://github.com/techfort/LokiJS/blob/25b9a33d57509717d43b4da06d92064f2b7a6c95/src/lokijs.js#L385

https://github.com/techfort/LokiJS/blob/25b9a33d57509717d43b4da06d92064f2b7a6c95/src/lokijs.js#L394

But do not support (keyof Document)[].

Losses avatar Dec 05 '22 14:12 Losses