tor-browser

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

getelem-sanity-8.js (348B)


      1 // TI does not account for GETELEM accessing strings, so the GETELEM PIC must
      2 // update type constraints according to generated stubs.
      3 function foo(a, b) {
      4  for (var j = 0; j < 5; j++)
      5    a[b[j]] + " what";
      6 }
      7 var a = {a:"zero", b:"one", c:"two", d:"three", e:"four"};
      8 var b = ["a", "b", "c", "d", "e"];
      9 foo(a, b);
     10 foo(a, b);
     11 a.e = 4;
     12 foo(a, b);