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
@@ -45,7 +45,7 @@ fn mock_event(id: &'static str, value: &'static str) {
|
||||
value, id
|
||||
);
|
||||
|
||||
eval(&js).unwrap().await.unwrap();
|
||||
eval(&js).await.unwrap();
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user