wasm_interp: allow WASI to take bytes rather than strings for argv

This commit is contained in:
Brian Carroll 2022-12-16 00:31:23 +00:00
parent 4501f2af0e
commit ca0f159386
No known key found for this signature in database
GPG key ID: 5C7B2EC4101703C0
4 changed files with 17 additions and 9 deletions

View file

@ -39,7 +39,7 @@ pub struct DefaultImportDispatcher<'a> {
}
impl<'a> DefaultImportDispatcher<'a> {
pub fn new(args: &'a [&'a String]) -> Self {
pub fn new(args: &'a [&'a [u8]]) -> Self {
DefaultImportDispatcher {
wasi: WasiDispatcher {
args,