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()); }