Caller get_export() implemented for Extern::Func. (#2108)

* Caller get_export() implemented for func

* update tests for get_export() Extern::Func return

Signed-off-by: Christopher Agia <chrisagia@google.com>

* document get_export() for Extern::Func

Signed-off-by: Christopher Agia <chrisagia@google.com>
This commit is contained in:
Christopher Agia
2020-08-07 12:24:42 -04:00
committed by GitHub
parent e60a6f2ad2
commit 2482bd80c2
2 changed files with 26 additions and 18 deletions

View File

@@ -409,7 +409,7 @@ fn caller_memory() -> anyhow::Result<()> {
let f = Func::wrap(&store, |c: Caller<'_>| {
assert!(c.get_export("m").is_some());
assert!(c.get_export("f").is_none());
assert!(c.get_export("f").is_some());
assert!(c.get_export("g").is_none());
assert!(c.get_export("t").is_none());
});