tor-browser

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

S9.3_A3_T1.js (495B)


      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    Result of number conversion from boolean value is 1 if the argument is
      7    true, else is +0
      8 es5id: 9.3_A3_T1
      9 description: False and true convert to Number by explicit transformation
     10 ---*/
     11 assert.sameValue(Number(false), +0, 'Number(false) must return +0');
     12 assert.sameValue(Number(true), 1, 'Number(true) must return 1');
     13 
     14 reportCompare(0, 0);