summaryrefslogtreecommitdiff
path: root/docs/binaryen.js.Markdown
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-07-11 18:38:32 -0700
committerGitHub <noreply@github.com>2017-07-11 18:38:32 -0700
commite6ea66898b90cd7b468aa5a78589672edf557389 (patch)
tree96772fc2b58c3690416df37a7881544990009c94 /docs/binaryen.js.Markdown
parent812943d51bac4767c4b7f749f17c26277e27f796 (diff)
downloadbinaryen-e6ea66898b90cd7b468aa5a78589672edf557389.tar.gz
binaryen-e6ea66898b90cd7b468aa5a78589672edf557389.tar.bz2
binaryen-e6ea66898b90cd7b468aa5a78589672edf557389.zip
add docs and error hints when a Call should be a CallImport (#1081)
* add docs and error hints when a Call should be a CallImport * fix binaryen API docs in docs/
Diffstat (limited to 'docs/binaryen.js.Markdown')
-rw-r--r--docs/binaryen.js.Markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/binaryen.js.Markdown b/docs/binaryen.js.Markdown
index 3ad2a0da7..20181d62a 100644
--- a/docs/binaryen.js.Markdown
+++ b/docs/binaryen.js.Markdown
@@ -211,7 +211,7 @@ Unprefixed expressions:
* `break(label, condition, value)`: Create a break, to a label, and with an optional condition, and optional value.
* `switch(labels, defaultLabel, condition, value)`: Create a switch (aka br_table), with a list of labels, a default label, a condition, and an optional value.
* `call(name, operands, type)`: Create a call, to a function name, with operands, and having a specific return type (note that we must specify the return type here as we may not have created the function being called yet, and we may want to optimize this function before we do so, so the API requires that each function be independent of the others, which means that we can't depend on the definition of another function).
- * `call(name, operands, type)`: Similar to `call`, but calls an imported function.
+ * `callImport(name, operands, type)`: Similar to `call`, but calls an imported function.
* `callIndirect(target, operands, type)`: Similar to `call`, but calls indirectly, i.e., via a function pointer, so an expression replaces the name as the called value.
* `getLocal(index, type)`: Create a get_local, for the local at the specified index, and having a specific type (the type is required for the same reasons as in `call`).
* `setLocal(index, value)`: Create a set_local, for the local at the specified index, and setting the specified value.