SHARE
TWEET

Untitled

a guest Oct 13th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (module
  2.   (import "shared" "memory" (memory 1))
  3.   (import "shared" "table" (table 1 anyfunc))
  4.   (elem (i32.const 0) $read1)  ;; set table[0] to read1 for indirect calling
  5.  
  6.   (func $read1 (result i32)
  7.    i32.const 4
  8.    i32.load)
  9.  
  10.   (func $read0 (result i32)
  11.    i32.const 0
  12.    i32.load)
  13.  
  14.   (export "read0" (func $read0))
  15. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top