Add imported globals

This commit is contained in:
Brandon Fish
2019-01-13 16:45:36 -06:00
parent 185394cf1a
commit de1da689f8
5 changed files with 48 additions and 6 deletions

View File

@ -148,8 +148,8 @@ pub mod converter {
F64Const(val) => Const(f64::from_bits(val).into()),
GlobalInit::GetGlobal(index) => {
WasmerInitializer::GetGlobal(WasmerGlobalIndex::new(index.index()))
}
Import => unimplemented!("TODO: imported globals are not supported yet!"),
},
GlobalInit::Import => WasmerInitializer::Import
};
WasmerGlobal { desc, init }