Last active
June 26, 2020 21:38
-
-
Save ctaggart/9fefe39f250165c30c14a05eb92416e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mod logging; | |
use js_sys::Array; | |
use wasm_bindgen::prelude::*; | |
#[wasm_bindgen] | |
pub fn run(argv: &Array) { | |
node::CONSOLE.log_va0(argv); | |
let args: Vec<String> = argv.iter().flat_map(|v| v.as_string()).collect(); | |
log!("args: {:?}", args); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment