Eval should never return an error
Only awaiting eval should error. Eval should always be available, even if using its methods returns errors.
This commit is contained in:
9 files changed
+65
-44
No files matched your search
+1
-2
@@ -25,8 +25,7 @@ fn app() -> Element {
|
||||
console.log(msg);
|
||||
return "hi from JS!";
|
||||
"#,
|
||||
)
|
||||
.unwrap();
|
||||
);
|
||||
|
||||
// Send a message to the JS code.
|
||||
eval.send("Hi from Rust!".into()).unwrap();
|
||||
|
||||
Reference in new issue
Block a user