Initial support for function, table, memory, and global imports.

This commit is contained in:
Dan Gohman
2018-12-08 17:38:28 -05:00
parent 93f33141e9
commit 56850d481d
45 changed files with 3181 additions and 2181 deletions

View File

@@ -90,14 +90,14 @@ pub struct WastContext {
impl WastContext {
/// Construct a new instance of `WastContext`.
pub fn new() -> Self {
Self {
pub fn new() -> Result<Self, String> {
Ok(Self {
worlds: PrimaryMap::new(),
current: None,
namespace: HashMap::new(),
code: Code::new(),
spectest: SpecTest::new(),
}
spectest: SpecTest::new()?,
})
}
fn instantiate(