tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

deepEqual-circular.js (349B)


      1 // Copyright 2019 Ron Buckton. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6  values compare correctly with circular references.
      7 includes: [deepEqual.js]
      8 ---*/
      9 
     10 var a = { x: 1 };
     11 var b = { x: 1 };
     12 a.a = a;
     13 a.b = b;
     14 b.a = b;
     15 b.b = a;
     16 
     17 assert.deepEqual(a, b);
     18 
     19 reportCompare(0, 0);