aboutsummaryrefslogtreecommitdiff
path: root/Modules.md
diff options
context:
space:
mode:
authorJF Bastien <github@jfbastien.com>2016-12-14 09:08:25 -0800
committerGitHub <noreply@github.com>2016-12-14 09:08:25 -0800
commitb4525659723e42fac2f44322f413e2cfc026d387 (patch)
tree2e8acaa10bf42a29d80a04f4fa589d3b5cdde49d /Modules.md
parent2ae114414ffcc7d84cbf3eb9df27f82e0edc00fa (diff)
downloadnanowasm-design-b4525659723e42fac2f44322f413e2cfc026d387.tar.gz
Start function clarifications (#905)
* Start function clarifications Resolves #896. * Clarify
Diffstat (limited to 'Modules.md')
-rw-r--r--Modules.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules.md b/Modules.md
index 18b1756..4d3b6bd 100644
--- a/Modules.md
+++ b/Modules.md
@@ -175,12 +175,12 @@ to allow *explicitly* sharing state between module instances.
## Module start function
If the module has a start node defined, the function it refers should be called
-by the loader after the instance is initialized and before the exported functions
-are called.
+by the loader after the instance is initialized, including its Memory and Table
+though Data and Element sections, and before the exported functions are callable.
* The start function must not take any arguments or return anything
-* The function is identified by [function index](#function-index-space) and can also be
- exported
+* The function is identified by [function index](#function-index-space), can be
+ an import, and can also be exported
* There can only be at most one start node per module
For example, a start node in a module will be: