This test program:
use wabt::script::ScriptParser;
fn main() {
let filename = "dir/test.wast";
let buffer = b"(module)";
let mut parser = ScriptParser::<f32, f64>::from_source_and_name(buffer, filename).unwrap();
while parser.next().expect("parser").is_some() {}
}
prints this:
thread 'main' panicked at 'Module referenced in JSON does not exist.', src/libcore/option.rs:1166:5
If I change the filename to just "test.wast", I get no error.
This test program:
prints this:
If I change the filename to just "test.wast", I get no error.