export entry expose mutable, also some precomipled tests

This commit is contained in:
NikVolf
2017-04-20 17:31:10 +03:00
parent c578aa18d2
commit a39db7182f
3 changed files with 2452 additions and 0 deletions

2448
res/cases/v1/test6.js Normal file

File diff suppressed because it is too large Load Diff

BIN
res/cases/v1/test6.wasm Normal file

Binary file not shown.

View File

@ -55,8 +55,12 @@ pub struct ExportEntry {
impl ExportEntry { impl ExportEntry {
/// Public name /// Public name
pub fn field(&self) -> &str { &self.field_str } pub fn field(&self) -> &str { &self.field_str }
/// Public name (mutable)
pub fn field_mut(&mut self) -> &mut str { &mut self.field_str }
/// Internal reference of the export entry. /// Internal reference of the export entry.
pub fn internal(&self) -> &Internal { &self.internal } pub fn internal(&self) -> &Internal { &self.internal }
/// Internal reference of the export entry (mutable).
pub fn internal_mut(&mut self) -> &mut Internal { &mut self.internal }
} }
impl Deserialize for ExportEntry { impl Deserialize for ExportEntry {