wabt-rs
wabt-rs copied to clipboard
Can't run script with path containing directores
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.
Thank you for this issue report, it helped to at least google the workaround :)