From b7dd849eca6305f89e2b77dac199394bf4136bfc Mon Sep 17 00:00:00 2001 From: Rerumu Date: Tue, 30 Nov 2021 20:44:18 -0500 Subject: [PATCH] Update limit max to be reasonable --- wasm/src/writer/shared.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/src/writer/shared.rs b/wasm/src/writer/shared.rs index bf3f944..db3cb7a 100644 --- a/wasm/src/writer/shared.rs +++ b/wasm/src/writer/shared.rs @@ -15,7 +15,7 @@ pub fn aux_internal_index(internal: Internal) -> u32 { pub fn new_limit_max(limits: &ResizableLimits) -> String { match limits.maximum() { Some(v) => v.to_string(), - None => "math.huge".to_string(), + None => "0xFFFF".to_string(), } }