mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-07-31 22:31:59 +00:00
Fix examples
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user