tor-browser

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

getelem-string.js (251B)


      1 function test1() {
      2    function getchar(s, i) {
      3        return s[i];
      4    }
      5    for (var i=0; i<70; i++) {
      6        assertEq(getchar("foo", 0), "f");
      7        assertEq(getchar("bar", 2), "r");
      8    }
      9    assertEq(getchar("foo", 3), undefined);
     10 }
     11 test1();