Lines Matching refs:base_error
12 let base_error: &Error = error.dyn_ref().unwrap(); in new() localVariable
13 assert_eq!(JsValue::from(base_error.message()), "some message"); in new()
19 let base_error: &Error = error.dyn_ref().unwrap(); in set_message() localVariable
20 base_error.set_message("another"); in set_message()
21 assert_eq!(JsValue::from(base_error.message()), "another"); in set_message()
27 let base_error: &Error = error.dyn_ref().unwrap(); in name() localVariable
28 assert_eq!(JsValue::from(base_error.name()), "EvalError"); in name()
34 let base_error: &Error = error.dyn_ref().unwrap(); in set_name() localVariable
35 base_error.set_name("different"); in set_name()
36 assert_eq!(JsValue::from(base_error.name()), "different"); in set_name()
42 let base_error: &Error = error.dyn_ref().unwrap(); in to_string() localVariable
44 JsValue::from(base_error.to_string()), in to_string()
47 base_error.set_name("error_name_1"); in to_string()
49 JsValue::from(base_error.to_string()), in to_string()