aboutsummaryrefslogtreecommitdiff
path: root/Modules.md
diff options
context:
space:
mode:
authorLuke Wagner <mail@lukewagner.name>2015-09-01 15:22:11 -0500
committerLuke Wagner <mail@lukewagner.name>2015-09-01 15:22:11 -0500
commit6bed798a02d7e86144c6a36a215071aa94d8fc9f (patch)
tree5c7169473704e7351c49971c130eafdc76810445 /Modules.md
parent19d2c4c8ea59a6fa08c96456234267dd746251ea (diff)
downloadnanowasm-design-6bed798a02d7e86144c6a36a215071aa94d8fc9f.tar.gz
Add more examples to instance list
Diffstat (limited to 'Modules.md')
-rw-r--r--Modules.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules.md b/Modules.md
index e6aa6eb..612431b 100644
--- a/Modules.md
+++ b/Modules.md
@@ -20,10 +20,13 @@ An instance contains:
* the code of the module from which the instance was loaded;
* a [linear memory](AstSemantics.md#linear-memory);
* [global variable](AstSemantics.md#global-variables) state;
-* fully resolved imports and exports;
-* (when [threading](PostMVP.md#threads) is added) thread-local state;
+* fully resolved imports;
+* host-specific state (for example, the JS function objects that reflect
+ exported functions to JS);
+* (when [threading](PostMVP.md#threads) is added) TLS variable state;
* (when [dynamic linking](DynamicLinking.md) is added) the code of multiple modules
that have been dynamically linked into the same instance;
+* and other semantically-visible state added by other future features.
While WebAssembly modules are designed to interoperate with ES6 modules
in a Web environment (more details [below](Modules.md#integration-with-es6-modules)),