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:
Alex Crichton
2018-02-06 08:58:15 -08:00
parent 28966d9853
commit 56b7fa453a
7 changed files with 95 additions and 102 deletions

View File

@ -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,
// }
// }
// }