Skip to content

Commit 899ce66

Browse files
authored
[js-api] Editorial: add grouping separators to limit values (#1643)
1 parent c2b3446 commit 899ce66

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

document/js-api/index.bs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,31 +1191,31 @@ An implementation must reject a module that exceeds one of the following limits
11911191
In practice, an implementation may run out of resources for valid modules below these limits.
11921192

11931193
<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>
12051205
<li>The maximum number of memories, including declared or imported memories, is 1.</li>
12061206

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>
12111211
</ul>
12121212

12131213
An implementation must throw a {{RuntimeError}} if one of the following limits is exceeded during runtime:
12141214
In practice, an implementation may run out of resources for valid modules below these limits.
12151215

12161216
<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>
12191219
</ul>
12201220

12211221
<h2 id="security-considerations">Security and Privacy Considerations</h2>

0 commit comments

Comments
 (0)