tor-browser

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

rope-stringchar.js (328B)


      1 function f(a, b) {
      2    assertEq(isLatin1(a), true);
      3    assertEq(isLatin1(b), false);
      4    var c = a + b;
      5    assertEq(isLatin1(c), false);
      6    assertEq(c[4], 'b');
      7    assertEq(c.charCodeAt(4), 98);
      8 }
      9 
     10 function test() {
     11    for (var i = 0; i < 15; i++) {
     12        f("aaaab\x00\x00\x00\x00\x00\x00", "\u{2603}");
     13    }
     14 }
     15 
     16 test();