mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
Removed unused code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user