tor-browser

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

is-zeroed.js (278B)


      1 // |jit-test| skip-if: !this.SharedArrayBuffer
      2 
      3 // Test that the SharedArrayBuffer memory is properly zeroed.
      4 
      5 function f() {
      6    var x = new SharedArrayBuffer(4096);
      7    var y = new Int32Array(x);
      8    assertEq(y[0], 0);
      9    assertEq(y[1], 0);
     10    assertEq(y[1023], 0);
     11 }
     12 
     13 f();