tor-browser

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

S15.1.2.2_A2_T9.js (685B)


      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 remove leading StrWhiteSpaceChar
      6 esid: sec-parseint-string-radix
      7 description: "StrWhiteSpaceChar :: PS (U+2029)"
      8 ---*/
      9 
     10 assert.sameValue(
     11  parseInt("\u20291"),
     12  parseInt("1"),
     13  'parseInt("\\u20291") must return the same value returned by parseInt("1")'
     14 );
     15 
     16 assert.sameValue(
     17  parseInt("\u2029\u2029-1"),
     18  parseInt("-1"),
     19  'parseInt("\\u2029\\u2029-1") must return the same value returned by parseInt("-1")'
     20 );
     21 
     22 //CHECK#3
     23 assert.sameValue(parseInt("\u2029"), NaN, 'parseInt("\\u2029") must return NaN');
     24 
     25 reportCompare(0, 0);