summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2019-03-06 14:07:24 -0800
committerGitHub <noreply@github.com>2019-03-06 14:07:24 -0800
commit5fc2854ab275510cd703e960e165b390b04e6d4c (patch)
tree9c631e8730a9ca31ee75acd1073bfa415cde2705 /src
parent69336dcad7dc0c861dffd97351ce7288a53aef26 (diff)
downloadwabt-5fc2854ab275510cd703e960e165b390b04e6d4c.tar.gz
wabt-5fc2854ab275510cd703e960e165b390b04e6d4c.tar.bz2
wabt-5fc2854ab275510cd703e960e165b390b04e6d4c.zip
Update demo to include feature flags (#1036)
Also add new examples for some of the features.
Diffstat (limited to 'src')
-rw-r--r--src/emscripten-exported.json4
-rw-r--r--src/wabt.post.js2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/emscripten-exported.json b/src/emscripten-exported.json
index bdd414ef..9935abc6 100644
--- a/src/emscripten-exported.json
+++ b/src/emscripten-exported.json
@@ -1,6 +1,7 @@
[
"_malloc",
"_wabt_apply_names_module",
+"_wabt_bulk_memory_enabled",
"_wabt_destroy_errors",
"_wabt_destroy_features",
"_wabt_destroy_module",
@@ -29,11 +30,14 @@
"_wabt_read_binary",
"_wabt_read_binary_result_get_result",
"_wabt_read_binary_result_release_module",
+"_wabt_reference_types_enabled",
"_wabt_resolve_names_module",
"_wabt_sat_float_to_int_enabled",
+"_wabt_set_bulk_memory_enabled",
"_wabt_set_exceptions_enabled",
"_wabt_set_multi_value_enabled",
"_wabt_set_mutable_globals_enabled",
+"_wabt_set_reference_types_enabled",
"_wabt_set_sat_float_to_int_enabled",
"_wabt_set_sign_extension_enabled",
"_wabt_set_simd_enabled",
diff --git a/src/wabt.post.js b/src/wabt.post.js
index bbe31f15..142e1c1a 100644
--- a/src/wabt.post.js
+++ b/src/wabt.post.js
@@ -25,6 +25,8 @@ var FEATURES = [
'threads',
'multi_value',
'tail_call',
+ 'bulk_memory',
+ 'reference_types',
];
/// If value is not undefined, return it. Otherwise return default_.