We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd8352f commit 880f917Copy full SHA for 880f917
crates/wasmi/src/engine/translator/mod.rs
@@ -582,6 +582,9 @@ impl WasmTranslator<'_> for FuncTranslator {
582
finalize(CompiledFuncEntity::new(len_registers, instrs, func_consts));
583
#[cfg(debug_assertions)]
584
if let Err(err) = conditions::verify_translation_invariants(&self) {
585
+ // Note: we do not propagate these errors to the caller as usual since
586
+ // breaking Wasmi translation invariants is considered a bug in Wasmi itself
587
+ // that should never occur if Wasmi translation works as intended.
588
panic!("{err}")
589
}
590
Ok(self.into_allocations())
0 commit comments