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:
Jonathan Kelley committed 2024-02-14 15:13:15 -08:00
1 parent 1145ed7534
commit cbadea022a
9 files changed
+65 -44

No files matched your search

+1 -2
View File
@@ -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();