mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 01:01:34 +00:00
js-sys: Promise methods should take JS things by shared reference
This commit is contained in:
@ -54,7 +54,7 @@
|
||||
//! pub fn new() -> NextTick {
|
||||
//! // Create a resolved promise that will run its callbacks on the next
|
||||
//! // tick of the micro task queue.
|
||||
//! let promise = js_sys::Promise::resolve(JsValue::NULL);
|
||||
//! let promise = js_sys::Promise::resolve(&JsValue::NULL);
|
||||
//! // Convert the promise into a `JsFuture`.
|
||||
//! let inner = JsFuture::from(promise);
|
||||
//! NextTick { inner }
|
||||
|
Reference in New Issue
Block a user