Skip to main content

error_to_js_value

Function error_to_js_value 

Source
pub fn error_to_js_value(error: Error) -> JsValue
Expand description

Convert Error to JsValue for WASM compatibility

This function provides secure error conversion that:

  • Prevents information leakage through error messages
  • Ensures consistent error handling across WASM bindings
  • Maintains security by not exposing internal implementation details