flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 213 forks source link

Crash when comparing two undefined #111

Closed damianobarbati closed 6 years ago

damianobarbati commented 7 years ago

Is this expected?

import differ from 'deep-diff';
console.log(differ(undefined, undefined));
Uncaught TypeError: Cannot read property 'lhs' of undefined
    at deepDiff (index.es.js:149)
    at Object.accumulateDiff [as a] (index.es.js:206)
martindale commented 6 years ago

Why is this closed?