tor-browser

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

compare-array-samevalue.js (370B)


      1 // Copyright (C) 2019 Alexey Shvayka. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6  compareArray uses SameValue for value comparison.
      7 includes: [compareArray.js]
      8 ---*/
      9 
     10 assert.compareArray([NaN], [NaN]);
     11 assert.throws(Test262Error, () => {
     12  assert.compareArray([0], [-0]);
     13 });
     14 
     15 reportCompare(0, 0);