MCPcopy Index your code
hub / github.com/explodingcamera/tinywasm / catch_unwind_silent

Function catch_unwind_silent

crates/cli/src/wast_runner.rs:684–690  ·  view source on GitHub ↗
(f: impl FnOnce() -> R)

Source from the content-addressed store, hash-verified

682}
683
684fn catch_unwind_silent<R>(f: impl FnOnce() -> R) -> std::thread::Result<R> {
685 let prev_hook = panic::take_hook();
686 panic::set_hook(Box::new(|_| {}));
687 let result = panic::catch_unwind(AssertUnwindSafe(f));
688 panic::set_hook(prev_hook);
689 result
690}
691
692fn encode_quote_wat(module: QuoteWat) -> (Option<String>, Vec<u8>) {
693 match module {

Callers 1

run_fileMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected