Przeglądaj źródła

wasm3: add comment about panics

x 3 lat temu
rodzic
commit
e7f852bcad
1 zmienionych plików z 1 dodań i 0 usunięć
  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())
             }
         };