kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

table_oob.wat (281B)


      1 (module
      2   (type $ret_i32 (func (result i32)))
      3   (func $target (type $ret_i32)
      4     i32.const 1)
      5   (table 2 funcref)
      6   (func (export "test_main") (result i32)
      7     ;; table.fill past the end traps.
      8     i32.const 1
      9     ref.func $target
     10     i32.const 5
     11     table.fill
     12     i32.const 0))