tor-browser

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

compare-array-different-elements.js (484B)


      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    Arrays containing different elements are not equivalent.
      7 includes: [compareArray.js]
      8 ---*/
      9 
     10 var first = [0, 'a', undefined];
     11 var second = [0, 'b', undefined];
     12 
     13 assert.throws(Test262Error, () => {
     14  assert.compareArray(first, second);
     15 }, 'Arrays containing different elements are not equivalent.');
     16 
     17 reportCompare(0, 0);