add empty contract

This commit is contained in:
NikVolf
2017-05-04 10:36:49 +03:00
parent ee7157160d
commit e86bd26a64
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -255,7 +255,7 @@
imports.env.memory = runtime.memory;
}
if (!imports.env.table) {
imports.env.table = new WebAssembly.Table({ initial: 6, maximum: 6, element: 'anyfunc' });
imports.env.table = new WebAssembly.Table({ initial: 0, maximum: 0, element: 'anyfunc' });
}
return new WebAssembly.Instance(module, imports);
});
+12
View File
@@ -0,0 +1,12 @@
#![feature(link_args)]
#![no_main]
// as it is experimental preamble
#![allow(dead_code)]
#[link_args = "-s WASM=1 -s NO_EXIT_RUNTIME=1 -s NO_FILESYSTEM=1 -s"]
extern {}
#[no_mangle]
pub fn call() {
}