Enable returning a vector of js values

This commit is contained in:
Ryan Levick
2018-02-28 10:56:56 +01:00
parent 19f88f0fd2
commit dab6ba1df8
4 changed files with 79 additions and 1 deletions

View File

@ -90,6 +90,8 @@ pub fn mangled_import_name(struct_: Option<&str>, f: &str) -> String {
pub type Type = char;
pub const TYPE_VECTOR_JSVALUE: char = '\u{5b}';
// Note: '\u{5c}' is '\' which breaks json encoding/decoding
pub const TYPE_ENUM: char = '\u{5d}';
pub const TYPE_NUMBER: char = '\u{5e}';
pub const TYPE_BORROWED_STR: char = '\u{5f}';