wast 243.0.0

Customizable Rust parsers for the WebAssembly Text formats WAT and WAST
Documentation
1
2
3
4
5
6
7
8
#[test]
fn no_stack_overflow() {
    let mut s = format!("(module (func \n");
    for _ in 0..10_000 {
        s.push_str("(i32.add\n");
    }
    assert!(wat::parse_str(&s).is_err());
}