Fix examples

This commit is contained in:
Sergey Pepyakin
2017-11-28 17:48:45 +03:00
parent 746eb07d69
commit 9c79d48855
2 changed files with 2 additions and 14 deletions

View File

@@ -15,13 +15,7 @@ fn main() {
}
// Intrepreter initialization.
// It also initializes a default "env" module.
let program = parity_wasm::ProgramInstance::with_emscripten_env(
interpreter::EmscriptenParams {
total_stack: 128*1024,
..Default::default()
}
).expect("Failed to load program");
let program = parity_wasm::ProgramInstance::new();
// Here we load module using dedicated for this purpose
// `deserialize_file` function (which works only with modules)