pub fn error_to_js_value(error: Error) -> JsValueExpand 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