Removed unused code

This commit is contained in:
Syrus Akbary
2021-07-12 22:45:30 -07:00
parent 38ed46b4fb
commit 92755a09e7
2 changed files with 0 additions and 361 deletions

View File

@@ -109,33 +109,6 @@ fn test_exported_function() {
assert_eq!(get_magic.call(&[]), Ok(expected));
}
// #[wasm_bindgen_test]
// fn test_exported_function() {
// let store = Store::default();
// let module = Module::new(&store, br#"
// (module
// (memory (export "mem") 1)
// (global $length (mut i32) (i32.const 13))
// (func (export "load") (result i32 i32)
// (i32.const 42)
// global.get $length)
// (data (i32.const 42) "Hello, World!"))
// "#).unwrap();
// let import_object = imports! {};
// let instance = Instance::new(&module, &import_object).unwrap();
// // let memory = instance.exports.get_memory("mem").unwrap();
// // assert_eq!(memory.size(), Pages(1));
// // assert_eq!(memory.data_size(), 65536);
// let load = instance
// .exports
// .get_function::<(), (WasmPtr<u8, Array>, i32)>("load")?;
// }
#[wasm_bindgen_test]
fn test_imported_function_dynamic() {
let store = Store::default();