tor-browser

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

S15.1.2.2_A5.1_T1.js (584B)


      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    parseInt is no longer allowed to treat a leading zero as indicating
      7    octal.  "If radix is undefined or 0, it is assumed to be 10 except
      8    when the number begins with the character pairs 0x or 0X, in which
      9    case a radix of 16 is assumed."
     10 esid: sec-parseint-string-radix
     11 description: Check if parseInt still accepts octal
     12 ---*/
     13 
     14 assert.sameValue(parseInt('010'), 10, 'parseInt(\'010\') must return 10');
     15 
     16 reportCompare(0, 0);