tor-browser

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

bug1972235.js (344B)


      1 // |jit-test| skip-if: !('toResizableBuffer' in WebAssembly.Memory.prototype)
      2 
      3 // Check if OOM in toFixedLengthBuffer is handled properly.
      4 
      5 function f() {
      6  var x = { initial: 0, maximum: 1 };
      7  x.shared = {};
      8  y = new WebAssembly.Memory(x);
      9  y.toFixedLengthBuffer(y.grow(x.maximum));
     10 }
     11 oomTest(() => {
     12  for (let i = 0; i < 4; i++) f();
     13 });