tor-browser

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

assert-samevalue-same.js (467B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6    Values that are strictly equal satisfy the assertion.
      7 ---*/
      8 var obj;
      9 
     10 assert.sameValue(undefined, undefined);
     11 assert.sameValue(null, null);
     12 assert.sameValue(0, 0);
     13 assert.sameValue(1, 1);
     14 assert.sameValue('', '');
     15 assert.sameValue('s', 's');
     16 
     17 obj = {};
     18 assert.sameValue(obj, obj);
     19 
     20 reportCompare(0, 0);