ejrgilbert / whamm

5 stars 2 forks source link

Panic at parsing for integer values outside i32 #51

Open ahuoguo opened 2 weeks ago

ahuoguo commented 2 weeks ago

The script wasm:bytecode:call:alt / (1 + 2147483648) / { } will cause pest panic.

thread 'verifier::tests::test_type_error_pred_final' panicked at src/parser/whamm_parser.rs:724:52:
called `Result::unwrap()` on an `Err` value: ParseIntError { kind: PosOverflow }

Issue exists just for the sake of documenting.

ejrgilbert commented 2 weeks ago

We could catch this and make a better error though.