Skip to content

Commit 22ba241

Browse files
dcodeIOkripken
authored andcommitted
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
1 parent b216708 commit 22ba241

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

build-js.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ EMCC_ARGS="$EMCC_ARGS -s NO_FILESYSTEM=0"
4444
EMCC_ARGS="$EMCC_ARGS -s WASM=0"
4545
EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
4646
EMCC_ARGS="$EMCC_ARGS -s BINARYEN_ASYNC_COMPILATION=0"
47-
# TODO: enable this (need nearbyint in emscripten tag) EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
47+
EMCC_ARGS="$EMCC_ARGS -s ERROR_ON_UNDEFINED_SYMBOLS=1"
4848
EMCC_ARGS="$EMCC_ARGS -s DISABLE_EXCEPTION_CATCHING=0" # Exceptions are thrown and caught when optimizing endless loops
4949
OUT_FILE_SUFFIX=
5050

src/binaryen-c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ BinaryenEventRef BinaryenAddEvent(BinaryenModuleRef module,
936936
uint32_t attribute,
937937
BinaryenFunctionTypeRef type);
938938
BinaryenEventRef BinaryenGetEvent(BinaryenModuleRef module, const char* name);
939-
void BinaryenEventEvent(BinaryenModuleRef module, const char* name);
939+
void BinaryenRemoveEvent(BinaryenModuleRef module, const char* name);
940940

941941
// Function table. One per module
942942

0 commit comments

Comments
 (0)