Don't panic on unsupported exports

It's most likely safe for us to skip exports that we don't yet
support.  Doing nothing will at least not hurt in those cases.
This commit is contained in:
David Flemström 2018-02-11 11:11:41 +01:00 committed by David Flemström
parent f3c0fc369a
commit c0f2773c4e

View File

@ -57,10 +57,10 @@ impl Output {
continue
}
Internal::Table(_) => {
panic!("wasm exports a table which isn't supported yet");
continue
}
Internal::Global(_) => {
panic!("wasm exports globals which aren't supported yet");
continue
}
};
@ -145,10 +145,10 @@ impl Output {
continue
}
Internal::Table(_) => {
panic!("wasm exports a table which isn't supported yet");
continue
}
Internal::Global(_) => {
panic!("wasm exports globals which aren't supported yet");
continue
}
};