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

Function catchCppExceptionPromise

test/embind/test_val_coro.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98val catchCppExceptionPromise() {
99 try {
100 co_await throwingCoro<0>();
101 } catch (const std::runtime_error &) {
102 co_return val("successfully caught!");
103 }
104 co_return val("ignored??");
105}
106
107
108class callback_coro {

Callers

nothing calls this directly

Calls 1

valFunction · 0.50

Tested by

no test coverage detected