MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / catch

Function catch

src/lib/libemval.js:518–529  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

516 // with metadata optimised out otherwise.
517 ___cxa_rethrow();
518 } catch (e) {
519#if !DISABLE_EXCEPTION_THROWING || WASM_EXCEPTIONS
520 // ___cxa_rethrow incremented uncaughtExceptionCount.
521 // Since we caught it in JS, we need to manually decrement it to balance.
522 decrementUncaughtExceptionCount();
523#endif
524 var handle = Emval.toHandle(e);
525#if !DISABLE_EXCEPTION_CATCHING || WASM_EXCEPTIONS
526 emval_exception_decrefs[handle] = decrementExceptionRefcount;
527#endif
528 return handle;
529 }
530 },
531};
532

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected