From cad0ea9ed5f0ac1dda62abe2c66d0a38ff8c104d Mon Sep 17 00:00:00 2001 From: Seth Thompson Date: Wed, 26 Oct 2016 22:52:58 +0200 Subject: fix improperly spaced markdown blocks and typos (for formatting on website (#837) --- Modules.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Modules.md') diff --git a/Modules.md b/Modules.md index 6da31b3..0e3879b 100644 --- a/Modules.md +++ b/Modules.md @@ -9,6 +9,7 @@ module instances can access the same shared state which is the basis for are also designed to [integrate with ES6 modules](#integration-with-es6-modules). A module contains the following sections: + * [import](#imports) * [export](#exports) * [start](#module-start-function) @@ -21,6 +22,7 @@ A module contains the following sections: A module also defines several *index spaces* which are statically indexed by various operators and section fields in the module: + * the [function index space](#function-index-space) * the [global index space](#global-index-space) * the [linear memory index space](#linear-memory-index-space) @@ -30,6 +32,7 @@ various operators and section fields in the module: A module can declare a sequence of **imports** which are provided, at instantiation time, by the host environment. There are several kinds of imports: + * **function imports**, which can be called inside the module by the [`call`](Semantics.md#calls) operator; * **global imports**, which can be accessed inside the module by the @@ -86,6 +89,7 @@ less-or-equal maximum length. In the MVP, every table is a [default table](Seman and thus there may be at most one table import or table section. Since the WebAssembly spec does not define how import names are interpreted: + * the [Web environment](Web.md#names) defines names to be UTF8-encoded strings; * the host environment can interpret the module name as a file path, a URL, a key in a fixed set of builtin modules or the host environment may invoke a @@ -123,6 +127,7 @@ define when this parsing/linking/execution occurs. An additional extension to the HTML spec is required to say when a script is parsed as a module instead of normal global code. This work is [ongoing](https://github.com/whatwg/loader/blob/master/roadmap.md). Currently, the following entry points for modules are being considered: + * `