Integrate UI state machine into Web REPL

This commit is contained in:
Brian Carroll 2023-09-09 15:47:22 +01:00
parent aa0e975845
commit f007d5c33a
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
2 changed files with 62 additions and 17 deletions

View file

@ -30,6 +30,6 @@ macro_rules! console_log {
/// The browser only has an async API to generate a Wasm module from bytes
/// wasm_bindgen manages the interaction between Rust Futures and JS Promises
#[wasm_bindgen]
pub async fn entrypoint_from_js(src: String) -> Result<String, String> {
pub async fn entrypoint_from_js(src: String) -> String {
crate::repl::entrypoint_from_js(src).await
}