tor-browser

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

S15.4.1_A3.1_T1.js (603B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    When Array is called as a function rather than as a constructor,
      7    it creates and initialises a new Array object
      8 es5id: 15.4.1_A3.1_T1
      9 description: Checking use typeof, instanceof
     10 ---*/
     11 
     12 assert.sameValue(typeof Array(), "object", 'The value of `typeof Array()` is expected to be "object"');
     13 
     14 assert.sameValue(
     15  Array() instanceof Array,
     16  true,
     17  'The result of evaluating (Array() instanceof Array) is expected to be true'
     18 );
     19 
     20 reportCompare(0, 0);