Skip to content

Commit

Permalink
Merge pull request WebAssembly#27 from WebAssembly/limits
Browse files Browse the repository at this point in the history
Raise JS memory limit to 100
  • Loading branch information
rossberg authored Nov 22, 2021
2 parents 21326c5 + 170c9e3 commit b6a086b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions document/js-api/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ Note: ECMAScript doesn't specify any sort of behavior on out-of-memory condition

The WebAssembly core specification allows an implementation to define limits on the syntactic structure of the module.
While each embedding of WebAssembly may choose to define its own limits, for predictability the standard WebAssembly JavaScript Interface described in this document defines the following exact limits.
An implementation must reject a module that exceeds one of the following limits with a {{CompileError}}:
An implementation must reject a module that exceeds one of the following limits with a {{CompileError}}.
In practice, an implementation may run out of resources for valid modules below these limits.

<ul>
Expand All @@ -1222,7 +1222,7 @@ In practice, an implementation may run out of resources for valid modules below
<li>The maximum number of tables, including declared or imported tables, is 100000.</li>
<li>The maximum size of a table is 10000000.</li>
<li>The maximum number of table entries in any table initialization is 10000000.</li>
<li>The maximum number of memories, including defined and imported memories, is 1.</li>
<li>The maximum number of memories, including defined and imported memories, is 100.</li>

<li>The maximum number of parameters to any function or block is 1000.</li>
<li>The maximum number of return values for any function or block is 1000.</li>
Expand Down

0 comments on commit b6a086b

Please sign in to comment.