summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2019-06-13 00:39:03 +0200
committerAlon Zakai <azakai@google.com>2019-06-12 15:39:03 -0700
commit22ba24118ef04720e6c7605dbaf90b22cdba006f (patch)
tree4971832ea6e6d95fd3d9f943d613f0145fb534ca
parentb2167087ac9d97a6ee024d7ecfc5e29a5bc157f3 (diff)
downloadbinaryen-22ba24118ef04720e6c7605dbaf90b22cdba006f.tar.gz
binaryen-22ba24118ef04720e6c7605dbaf90b22cdba006f.tar.bz2
binaryen-22ba24118ef04720e6c7605dbaf90b22cdba006f.zip
Fix BinaryenRemoveEvent naming in binaryen-c.h (#2171)
* Fix BinaryenRemoveEvent naming in binaryen-c.h * Enable ERROR_ON_UNDEFINED_SYMBOLS=1 in build-js.sh
-rwxr-xr-xbuild-js.sh2
-rw-r--r--src/binaryen-c.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/build-js.sh b/build-js.sh
index 832847f74..e5e991493 100755
--- a/build-js.sh
+++ b/build-js.sh
@@ -44,7 +44,7 @@ EMCC_ARGS="$EMCC_ARGS -s NO_FILESYSTEM=0"
EMCC_ARGS="$EMCC_ARGS -s WASM=0"
EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
EMCC_ARGS="$EMCC_ARGS -s BINARYEN_ASYNC_COMPILATION=0"
-# TODO: enable this (need nearbyint in emscripten tag) EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
+EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
EMCC_ARGS="$EMCC_ARGS -s DISABLE_EXCEPTION_CATCHING=0" # Exceptions are thrown and caught when optimizing endless loops
OUT_FILE_SUFFIX=
diff --git a/src/binaryen-c.h b/src/binaryen-c.h
index 7b9b0141a..f419292bf 100644
--- a/src/binaryen-c.h
+++ b/src/binaryen-c.h
@@ -936,7 +936,7 @@ BinaryenEventRef BinaryenAddEvent(BinaryenModuleRef module,
uint32_t attribute,
BinaryenFunctionTypeRef type);
BinaryenEventRef BinaryenGetEvent(BinaryenModuleRef module, const char* name);
-void BinaryenEventEvent(BinaryenModuleRef module, const char* name);
+void BinaryenRemoveEvent(BinaryenModuleRef module, const char* name);
// Function table. One per module