fix error boundary test
This commit is contained in:
1 parent
6141aeb037
commit
4b4dcbed6a
1 file changed
+2
-2
@@ -24,9 +24,9 @@ fn NoneChild(_cx: Scope) -> Element {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn ThrowChild(cx: Scope) -> Element {
|
fn ThrowChild(cx: Scope) -> Element {
|
||||||
cx.throw(std::io::Error::new(std::io::ErrorKind::AddrInUse, "asd"))?;
|
Err(std::io::Error::new(std::io::ErrorKind::AddrInUse, "asd")).throw()?;
|
||||||
|
|
||||||
let _g: i32 = "123123".parse().throw(cx)?;
|
let _g: i32 = "123123".parse().throw()?;
|
||||||
|
|
||||||
cx.render(rsx! {
|
cx.render(rsx! {
|
||||||
div {}
|
div {}
|
||||||
|
|||||||
Reference in new issue
Block a user