Sfoglia il codice sorgente

wasm3: add comment about panics

x 3 anni fa
parent
commit
e7f852bcad
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/runtime/vm_runtime.rs

+ 1 - 0
src/runtime/vm_runtime.rs

@@ -175,6 +175,7 @@ impl Runtime {
             Err(e) => {
                 self.print_logs();
                 debug!(target: "wasm_runtime::run", "{}", self.gas_info());
+                // WasmerRuntimeError panics are handled here. Return from run() immediately.
                 return Err(e.into())
             }
         };