Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run script with path containing directores #59

Open
sunfishcode opened this issue Oct 7, 2019 · 1 comment
Open

Can't run script with path containing directores #59

sunfishcode opened this issue Oct 7, 2019 · 1 comment

Comments

@sunfishcode
Copy link
Contributor

sunfishcode commented Oct 7, 2019

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.

@RReverser
Copy link

Thank you for this issue report, it helped to at least google the workaround :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants