@@ -1191,31 +1191,31 @@ An implementation must reject a module that exceeds one of the following limits
1191
1191
In practice, an implementation may run out of resources for valid modules below these limits.
1192
1192
1193
1193
<ul>
1194
- <li> The maximum size of a module is 1073741824 bytes (1 GiB).</li>
1195
- <li> The maximum number of types defined in the types section is 1000000 .</li>
1196
- <li> The maximum number of functions defined in a module is 1000000 .</li>
1197
- <li> The maximum number of imports declared in a module is 100000 .</li>
1198
- <li> The maximum number of exports declared in a module is 100000 .</li>
1199
- <li> The maximum number of globals defined in a module is 1000000 .</li>
1200
- <li> The maximum number of data segments defined in a module is 100000 .</li>
1201
-
1202
- <li> The maximum number of tables, including declared or imported tables, is 100000 .</li>
1203
- <li> The maximum size of a table is 10000000 .</li>
1204
- <li> The maximum number of table entries in any table initialization is 10000000 .</li>
1194
+ <li> The maximum size of a module is 1,073,741,824 bytes (1 GiB).</li>
1195
+ <li> The maximum number of types defined in the types section is 1,000,000 .</li>
1196
+ <li> The maximum number of functions defined in a module is 1,000,000 .</li>
1197
+ <li> The maximum number of imports declared in a module is 100,000 .</li>
1198
+ <li> The maximum number of exports declared in a module is 100,000 .</li>
1199
+ <li> The maximum number of globals defined in a module is 1,000,000 .</li>
1200
+ <li> The maximum number of data segments defined in a module is 100,000 .</li>
1201
+
1202
+ <li> The maximum number of tables, including declared or imported tables, is 100,000 .</li>
1203
+ <li> The maximum size of a table is 10,000,000 .</li>
1204
+ <li> The maximum number of table entries in any table initialization is 10,000,000 .</li>
1205
1205
<li> The maximum number of memories, including declared or imported memories, is 1.</li>
1206
1206
1207
- <li> The maximum number of parameters to any function or block is 1000 .</li>
1208
- <li> The maximum number of return values for any function or block is 1000 .</li>
1209
- <li> The maximum size of a function body, including locals declarations, is 7654321 bytes.</li>
1210
- <li> The maximum number of locals declared in a function, including implicitly declared as parameters, is 50000 .</li>
1207
+ <li> The maximum number of parameters to any function or block is 1,000 .</li>
1208
+ <li> The maximum number of return values for any function or block is 1,000 .</li>
1209
+ <li> The maximum size of a function body, including locals declarations, is 7,654,321 bytes.</li>
1210
+ <li> The maximum number of locals declared in a function, including implicitly declared as parameters, is 50,000 .</li>
1211
1211
</ul>
1212
1212
1213
1213
An implementation must throw a {{RuntimeError}} if one of the following limits is exceeded during runtime:
1214
1214
In practice, an implementation may run out of resources for valid modules below these limits.
1215
1215
1216
1216
<ul>
1217
- <li> The maximum size of a table is 10000000 .</li>
1218
- <li> The maximum number of pages of a memory is 65536 .</li>
1217
+ <li> The maximum size of a table is 10,000,000 .</li>
1218
+ <li> The maximum number of pages of a memory is 65,536 .</li>
1219
1219
</ul>
1220
1220
1221
1221
<h2 id="security-considerations">Security and Privacy Considerations</h2>
0 commit comments