Document Callable, Trap, HostRef, and ValType (#693)
This commit is contained in:
committed by
Alex Crichton
parent
0cc8c6c867
commit
ddd2300010
@@ -8,7 +8,7 @@ fn test_trap_return() -> Result<(), String> {
|
||||
|
||||
impl Callable for HelloCallback {
|
||||
fn call(&self, _params: &[Val], _results: &mut [Val]) -> Result<(), HostRef<Trap>> {
|
||||
Err(HostRef::new(Trap::new("test 123".into())))
|
||||
Err(HostRef::new(Trap::new("test 123")))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user