Revert "Update wasmtime (#5822)" (#5935)

This reverts commit e5163380e7.

We found some bugs that we first need to fix.
This commit is contained in:
Bastian Köcher
2020-05-07 11:47:38 +02:00
committed by GitHub
parent d8b7520a90
commit eff1680aed
8 changed files with 168 additions and 198 deletions
@@ -92,8 +92,9 @@ fn call_not_existing_function(wasm_method: WasmExecutionMethod) {
"\"Trap: Trap { kind: Host(Other(\\\"Function `missing_external` is only a stub. Calling a stub is not allowed.\\\")) }\""
),
#[cfg(feature = "wasmtime")]
WasmExecutionMethod::Compiled => assert!(
format!("{:?}", e).contains("Wasm execution trapped: call to a missing function env:missing_external")
WasmExecutionMethod::Compiled => assert_eq!(
&format!("{:?}", e),
"\"Wasm execution trapped: call to a missing function env:missing_external\""
),
}
}
@@ -120,8 +121,9 @@ fn call_yet_another_not_existing_function(wasm_method: WasmExecutionMethod) {
"\"Trap: Trap { kind: Host(Other(\\\"Function `yet_another_missing_external` is only a stub. Calling a stub is not allowed.\\\")) }\""
),
#[cfg(feature = "wasmtime")]
WasmExecutionMethod::Compiled => assert!(
format!("{:?}", e).contains("Wasm execution trapped: call to a missing function env:yet_another_missing_external")
WasmExecutionMethod::Compiled => assert_eq!(
&format!("{:?}", e),
"\"Wasm execution trapped: call to a missing function env:yet_another_missing_external\""
),
}
}