tor-browser

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

S11.2.1_A4_T6.js (1698B)


      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: Check type of various properties
      6 es5id: 11.2.1_A4_T6
      7 description: Checking properties of the Boolean object
      8 ---*/
      9 
     10 //CHECK#1-8
     11 if (typeof Boolean.prototype  !== "object")   throw new Test262Error('#1: typeof Boolean.prototype === "object". Actual: ' + (typeof Boolean.prototype ));
     12 if (typeof Boolean['prototype']  !== "object")  throw new Test262Error('#2: typeof Boolean["prototype"] === "object". Actual: ' + (typeof Boolean["prototype"] ));
     13 if (typeof Boolean.constructor  !== "function")  throw new Test262Error('#3: typeof Boolean.constructor === "function". Actual: ' + (typeof Boolean.constructor ));
     14 if (typeof Boolean['constructor']  !== "function")  throw new Test262Error('#4: typeof Boolean["constructor"] === "function". Actual: ' + (typeof Boolean["constructor"] ));
     15 if (typeof Boolean.prototype.valueOf  !== "function")  throw new Test262Error('#5: typeof Boolean.prototype.valueOf === "function". Actual: ' + (typeof Boolean.prototype.valueOf ));
     16 if (typeof Boolean.prototype['valueOf'] !== "function")  throw new Test262Error('#6: typeof Boolean.prototype["valueOf"] === "function". Actual: ' + (typeof Boolean.prototype["valueOf"] ));
     17 if (typeof Boolean.prototype.toString !== "function")  throw new Test262Error('#7: typeof Boolean.prototype.toString === "function". Actual: ' + (typeof Boolean.prototype.toString ));
     18 if (typeof Boolean.prototype['toString'] !== "function")  throw new Test262Error('#8: typeof Boolean.prototype["toString"] === "function". Actual: ' + (typeof Boolean.prototype["toString"] ));
     19 
     20 reportCompare(0, 0);