mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18:20 +00:00
Remove RuntimeError::raise from public API
This commit is contained in:
committed by
Manos Pitsidianakis
parent
984df1ed35
commit
220751a035
@@ -64,7 +64,7 @@ impl RuntimeError {
|
||||
|
||||
/// Raises a custom user Error
|
||||
#[deprecated(since = "2.1.1", note = "return a Result from host functions instead")]
|
||||
pub fn raise(error: Box<dyn Error + Send + Sync>) -> ! {
|
||||
pub(crate) fn raise(error: Box<dyn Error + Send + Sync>) -> ! {
|
||||
let error = Self::user(error);
|
||||
let js_error: JsValue = error.into();
|
||||
wasm_bindgen::throw_val(js_error)
|
||||
|
||||
Reference in New Issue
Block a user