tor-browser

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

15.4.3.2-2-2.js (506B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-array.isarray
      6 es5id: 15.4.3.2-2-2
      7 description: >
      8    Array.isArray applied to an object with Array.prototype as the
      9    prototype
     10 ---*/
     11 
     12 var proto = Array.prototype;
     13 var Con = function() {};
     14 Con.prototype = proto;
     15 
     16 var child = new Con();
     17 
     18 assert.sameValue(Array.isArray(child), false, 'Array.isArray(new Con()) must return false');
     19 
     20 reportCompare(0, 0);