Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit b6a086b

Browse files
authored
Merge pull request #27 from WebAssembly/limits
Raise JS memory limit to 100
2 parents 21326c5 + 170c9e3 commit b6a086b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

document/js-api/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,7 @@ Note: ECMAScript doesn't specify any sort of behavior on out-of-memory condition
12071207

12081208
The WebAssembly core specification allows an implementation to define limits on the syntactic structure of the module.
12091209
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.
1210-
An implementation must reject a module that exceeds one of the following limits with a {{CompileError}}:
1210+
An implementation must reject a module that exceeds one of the following limits with a {{CompileError}}.
12111211
In practice, an implementation may run out of resources for valid modules below these limits.
12121212

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

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

0 commit comments

Comments
 (0)