tor-browser

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

regress-1754701.js (643B)


      1 let { testArray, testStructInline, testStructOutline } = wasmEvalText(`
      2  (module
      3  (type $array (array i32))
      4  (type $structInline (struct))
      5  (type $structOutline
      6    (struct
      7      ${`(field i32)`.repeat(100)}
      8    )
      9  )
     10  (func (export "testArray")
     11    (param i32)
     12    (result eqref)
     13    local.get 0
     14    array.new_default $array
     15  )
     16  (func (export "testStructInline")
     17    (result eqref)
     18    struct.new_default $structInline
     19  )
     20  (func (export "testStructOutline")
     21    (result eqref)
     22    struct.new_default $structOutline
     23  )
     24 )
     25 `).exports
     26 oomTest(() => testArray(1));
     27 oomTest(() => testStructInline());
     28 oomTest(() => testStructOutline());