mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-25 12:42:03 +00:00
export entry expose mutable, also some precomipled tests
This commit is contained in:
2448
res/cases/v1/test6.js
Normal file
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
BIN
res/cases/v1/test6.wasm
Normal file
Binary file not shown.
@ -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 {
|
||||||
|
Reference in New Issue
Block a user