issue-62.js 308 B

1234567891011121314
  1. var deep = require("../");
  2. // https://github.com/flitbit/diff/issues/62#issuecomment-229549984
  3. // 3: appears to be fixed, probably in fixing #74.
  4. var a = {};
  5. var b = {};
  6. a.x = b;
  7. b.x = b;
  8. deep.diff(a, b); // True
  9. a.x = a; // Change to a
  10. // No change to b
  11. console.log(deep.diff(a, b)); // Still true...