tor-browser

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

unreachable.js (513B)


      1 // |jit-test| test-also=--wasm-compiler=optimizing; test-also=--wasm-compiler=baseline;
      2 
      3 wasmFailValidateText(`(module
      4 (tag)
      5 (tag)
      6 (func (export "test")
      7 	try
      8 		throw 0
      9 	catch 0
     10 		unreachable
     11 	catch 1
     12 		i32.add
     13 	end
     14 )
     15 )`, /popping/);
     16 
     17 wasmFailValidateText(`(module
     18 (tag)
     19 (tag)
     20 (func (export "test") (param (ref extern))
     21 	(local $nonNullable (ref extern))
     22 	try
     23 		throw 0
     24 	catch 0
     25 		(local.set $nonNullable (local.get 0))
     26 	catch 1
     27 		(local.get $nonNullable)
     28 		drop
     29 	end
     30 )
     31 )`, /unset local/);