tor-browser

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

trial-inline-gc-1.js (261B)


      1 // |jit-test| --fast-warmup
      2 function g(x) {
      3    return x + 1;
      4 }
      5 function f() {
      6    for (var i = 0; i < 150; i++) {
      7        assertEq(g("foo"), "foo1");
      8        assertEq(g(1), 2);
      9        if (i === 100) {
     10            gc(this, "shrinking");
     11        }
     12    }
     13 }
     14 f();