mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 02:09:05 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			187 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
#[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());
 | 
						|
}
 |