Skip to content

Commit 880f917

Browse files
committed
add clarifying comment
1 parent cd8352f commit 880f917

File tree

1 file changed

+3
-0
lines changed
  • crates/wasmi/src/engine/translator

1 file changed

+3
-0
lines changed

crates/wasmi/src/engine/translator/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,9 @@ impl WasmTranslator<'_> for FuncTranslator {
582582
finalize(CompiledFuncEntity::new(len_registers, instrs, func_consts));
583583
#[cfg(debug_assertions)]
584584
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.
585588
panic!("{err}")
586589
}
587590
Ok(self.into_allocations())

0 commit comments

Comments
 (0)