diff --git a/document/js-api/index.bs b/document/js-api/index.bs index de3419cff6..ec9f6e0a94 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -1273,8 +1273,8 @@ In practice, an implementation may run out of resources for valid modules below
  • The maximum size of a module is 1,073,741,824 bytes (1 GiB).
  • The maximum number of types defined in the types section is 1,000,000.
  • The maximum number of functions defined in a module is 1,000,000.
  • -
  • The maximum number of imports declared in a module is 100,000.
  • -
  • The maximum number of exports declared in a module is 100,000.
  • +
  • The maximum number of imports declared in a module is 1,000,000.
  • +
  • The maximum number of exports declared in a module is 1,000,000.
  • The maximum number of globals defined in a module is 1,000,000.
  • The maximum number of data segments defined in a module is 100,000.
  • diff --git a/test/js-api/limits.any.js b/test/js-api/limits.any.js index d913c6c7a4..72b721bfc8 100644 --- a/test/js-api/limits.any.js +++ b/test/js-api/limits.any.js @@ -5,8 +5,8 @@ // Static limits const kJSEmbeddingMaxTypes = 1000000; const kJSEmbeddingMaxFunctions = 1000000; -const kJSEmbeddingMaxImports = 100000; -const kJSEmbeddingMaxExports = 100000; +const kJSEmbeddingMaxImports = 1000000; +const kJSEmbeddingMaxExports = 1000000; const kJSEmbeddingMaxGlobals = 1000000; const kJSEmbeddingMaxDataSegments = 100000;