Skip to content

Can't run script with path containing directores #59

Description

@sunfishcode

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions