message: feat(deprecated) Replace a `panic!` by a `RuntimeError`.
diff: @@ -108,13 +108,21 @@ macro_rules! func_call {
  let results: Vec<Value> = self.dyn_call(params)?.to_vec();
  // Map the results into their binary form.
  - let rets: Vec<i128> = results.iter().map(|value| match value {
  + let rets: Vec<i128> = results
  + .iter()
  + .map(|value| {
  + Ok(match value {
  Value::I32(value) => <i32 as new::wasmer::WasmExternType>::from_native(*value).to_binary(),
  Value::I64(value) => <i64 as new::wasmer::WasmExternType>::from_native(*value).to_binary(),
  Value::F32(value) => <f32 as new::wasmer::WasmExternType>::from_native(*value).to_binary(),
  Value::F64(value) => <f64 as new::wasmer::WasmExternType>::from_native(*value).to_binary(),
  - value => panic!("Value `{:?}` is not supported as a returned value of a host function for the moment", value),
  - }).collect();
  + value => return Err(RuntimeError::new(format!(
  + "value `{:?}` is not supported as a returned value of a host function for the moment; please use `dyn_call` or the new API",
  + value
  + ))),
  + })
  + })
  + .collect::<Result<Vec<i128>, RuntimeError>>()?;
  // Convert `Vec<i128>` into a `WasmTypeList`.
  let rets: Rets = Rets::from_slice(rets.as_slice()).map_err(|_| {
  