mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Integrate UI state machine into Web REPL
This commit is contained in:
parent
aa0e975845
commit
f007d5c33a
2 changed files with 62 additions and 17 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue