mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
Fix closures example
This commit is contained in:
parent
601b138296
commit
13cee9e264
@ -55,7 +55,8 @@ pub fn run() {
|
||||
document
|
||||
.get_element_by_id("current-time")
|
||||
.set_inner_html(&String::from(
|
||||
Date::new().to_locale_string(JsString::from("en-GB"), JsValue::undefined()),
|
||||
Date::new(JsValue::undefined())
|
||||
.to_locale_string("en-GB".into(), JsValue::undefined()),
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user