Skip to content

Commit 7108f55

Browse files
authored
Bump limits for max instantiation exports/args (#961)
Match the maximum number of imports/exports to ensure these are all in alignment.
1 parent 458ff31 commit 7108f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/wasmparser/src/limits.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ pub const MAX_WASM_TUPLE_TYPES: usize = 1000;
4646
pub const MAX_WASM_FLAG_NAMES: usize = 1000;
4747
pub const MAX_WASM_ENUM_CASES: usize = 1000;
4848
pub const MAX_WASM_UNION_TYPES: usize = 1000;
49-
pub const MAX_WASM_INSTANTIATION_EXPORTS: usize = 1000;
49+
pub const MAX_WASM_INSTANTIATION_EXPORTS: usize = 100_000;
5050
pub const MAX_WASM_CANONICAL_OPTIONS: usize = 10;
51-
pub const MAX_WASM_INSTANTIATION_ARGS: usize = 1000;
51+
pub const MAX_WASM_INSTANTIATION_ARGS: usize = 100_000;
5252
pub const MAX_WASM_START_ARGS: usize = 1000;
5353
pub const MAX_WASM_TYPE_SIZE: u32 = 1_000_000;
5454
pub const MAX_WASM_MODULES: usize = 1_000;

0 commit comments

Comments
 (0)