tor-browser

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

S15.1.2.2_A3.1_T4.js (575B)


      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: Operator use ToNumber
      6 esid: sec-parseint-string-radix
      7 description: Checking for Boolean object
      8 ---*/
      9 
     10 assert.sameValue(
     11  parseInt("11", new Boolean(false)),
     12  parseInt("11", false),
     13  'parseInt("11", new Boolean(false)) must return the same value returned by parseInt("11", false)'
     14 );
     15 
     16 //CHECK#2
     17 assert.sameValue(parseInt("11", new Boolean(true)), NaN, 'parseInt("11", new Boolean(true)) must return NaN');
     18 
     19 reportCompare(0, 0);