Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
98
val 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
108
class callback_coro {
Callers
nothing calls this directly
Calls
1
val
Function · 0.50
Tested by
no test coverage detected