mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-28 04:01:33 +00:00
Fix some class import methods and auto gc
The runtime functions are now moved to the `wasm-bindgen` crate and are auto-gc'd if they don't end up actually being required.
This commit is contained in:
@ -90,25 +90,3 @@ pub const TYPE_JS_REF: char = '\u{63}';
|
||||
|
||||
pub const TYPE_CUSTOM_START: u32 = 0x64;
|
||||
pub const TYPE_CUSTOM_REF_FLAG: u32 = 1;
|
||||
|
||||
// #[derive(Serialize, Deserialize)]
|
||||
// pub enum Type {
|
||||
// Number,
|
||||
// BorrowedStr,
|
||||
// String,
|
||||
// ByValue(String), // wrapper class
|
||||
// ByRef(String), // wrapper class
|
||||
// ByMutRef(String), // wrapper class
|
||||
// JsObject,
|
||||
// JsObjectRef,
|
||||
// Boolean,
|
||||
// }
|
||||
|
||||
// impl Type {
|
||||
// pub fn is_number(&self) -> bool {
|
||||
// match *self {
|
||||
// Type::Number => true,
|
||||
// _ => false,
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
Reference in New Issue
Block a user