mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Remove Stdio hack
This commit is contained in:
parent
6f179ed4d2
commit
914addc1f3
@ -1,6 +1,6 @@
|
||||
use libc;
|
||||
use std::fs::File;
|
||||
use std::io::{Read, Write};
|
||||
use std::io::{Read};
|
||||
use std::os::unix::io::FromRawFd;
|
||||
|
||||
// A struct to hold the references to the base stdout and the captured one
|
||||
|
@ -16,9 +16,6 @@ macro_rules! assert_emscripten_output {
|
||||
isa: get_isa(),
|
||||
});
|
||||
let mut result_object = instantiate(wasm_bytes.to_vec(), import_object, options).expect("Not compiled properly");
|
||||
// We use this as a way of hacking the stdout and remove the data that should be flushed
|
||||
(StdioCapturer::new()).end();
|
||||
|
||||
let capturer = StdioCapturer::new();
|
||||
start_instance(&result_object.module, &mut result_object.instance, $name, $args).unwrap();
|
||||
let output = capturer.end().0;
|
||||
|
Loading…
Reference in New Issue
Block a user