techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.71k stars 478 forks source link

Incorrect implementation of `getObjectDelta` #914

Open Losses opened 1 year ago

Losses commented 1 year ago

I'm not sure what is this line of code trying to express, but an empty object won't equal to anything except itself, propertyDelta != {} will always return false.

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

@techfort @ChristopherTapLogic