Skip to content

Commit

Permalink
Support newer version of emscripten. (envoyproxy#134)
Browse files Browse the repository at this point in the history
Signed-off-by: John Plevyak <[email protected]>
  • Loading branch information
jplevyak authored Aug 16, 2019
1 parent 915ed46 commit 36e3280
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/extensions/common/wasm/wasm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,10 @@ Word ___cxa_uncaught_exceptionHandler(void*) {
throw WasmException("emscripten cxa_uncaught_exception");
}

Word ___cxa_uncaught_exceptionsHandler(void*) {
throw WasmException("emscripten cxa_uncaught_exceptions");
}

Word ___clock_gettimeHandler(void*, Word, Word) { throw WasmException("emscripten clock_gettime"); }

void ___lockHandler(void*, Word) { throw WasmException("emscripten lock"); }
Expand Down Expand Up @@ -1834,6 +1838,7 @@ void Wasm::registerCallbacks() {
_REGISTER(___cxa_pure_virtual);
_REGISTER(___cxa_allocate_exception);
_REGISTER(___cxa_uncaught_exception);
_REGISTER(___cxa_uncaught_exceptions);
_REGISTER(___call_main);
_REGISTER(___clock_gettime);
_REGISTER(___lock);
Expand Down

0 comments on commit 36e3280

Please sign in to comment.