From 8fba1dfd2dba10c8bd9eb66fba03cdc17ca8b134 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 22 Mar 2023 11:28:49 -0700 Subject: [PATCH] Document new implementation-defined limits in MVP.md Based on discussion in #335 and subgroup meetings. --- proposals/gc/MVP.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proposals/gc/MVP.md b/proposals/gc/MVP.md index c7eeccb3b..aed8e49fd 100644 --- a/proposals/gc/MVP.md +++ b/proposals/gc/MVP.md @@ -779,6 +779,14 @@ The opcode for heap types is encoded as an `s33`. | 0xfb70 | `extern.internalize` | | | 0xfb71 | `extern.externalize` | | +## Implementation-defined Limits + +The following limits will be added to the Implementation-defined Limits [section](https://webassembly.github.io/spec/js-api/index.html#limits) of the JS API. + + - The maximum number of recursion groups is 1000000. (The maximum number of individual types remains unchanged and is also 1000000.) + - The maximum number of struct fields is 10000. + - The maximum number of operands to `array.new_fixed` is 10000. + - The maximum length of a supertype chain is 63. (A type declared with no supertypes has a supertype chain of length 0) ## JS API