mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 09:41:33 +00:00
Add support for constructing JsValue instances generically
This commit is contained in:
committed by
Alex Crichton
parent
e6a483f906
commit
73619b5d15
@ -94,10 +94,10 @@ impl JsValue {
|
||||
}
|
||||
}
|
||||
|
||||
// #[doc(hidden)]
|
||||
// pub fn __from_idx(idx: u32) -> JsValue {
|
||||
// JsValue { idx }
|
||||
// }
|
||||
#[doc(hidden)]
|
||||
pub unsafe fn __from_idx(idx: u32) -> JsValue {
|
||||
JsValue { idx }
|
||||
}
|
||||
//
|
||||
// #[doc(hidden)]
|
||||
// pub fn __get_idx(&self) -> u32 {
|
||||
|
Reference in New Issue
Block a user