Invalid event index 0, must be less than 0
Horcrux7 opened this issue · 0 comments
Horcrux7 commented
I receive the follow error with the wasp command line tool:
wasp validate --enable-gc --enable-exceptions test.wasm
[FAIL] test.wasm
<unknown>:00000f0e: Invalid event index 0, must be less than 0
0210 5408 000b 2001 4100 4804 40
^^
Decompiled look the code position:
000f0d: 08 00 | throw 0
My meanings is that the index for an event/exception must be >= 0 that I interpret this error message that the list of exception definitions is zero. But the event section look like:
Contents of section event:
00008fb: 0100 8201
This will also correct decompiled as:
(event (type 130))
I think it is a bug in of the wasp validate message or I oversee some important things.