Skip to content

Commit

Permalink
Document new implementation-defined limits in MVP.md
Browse files Browse the repository at this point in the history
Based on discussion in #335 and subgroup meetings.
  • Loading branch information
tlively committed Mar 23, 2023
1 parent 38fcf6e commit 8fba1df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions proposals/gc/MVP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8fba1df

Please sign in to comment.