Implement WASI C API.
This commit implements an initial WASI C API that can be used to instantiate and configure a WASI instance from C. This also implements a `WasiBuilder` for the C# API enabling .NET hosts to bind to Wasmtime's WASI implementation.
This commit is contained in:
@@ -15,19 +15,19 @@ namespace Wasmtime.Tests
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (Module != null)
|
||||
if (!(Module is null))
|
||||
{
|
||||
Module.Dispose();
|
||||
Module = null;
|
||||
}
|
||||
|
||||
if (Store != null)
|
||||
if (!(Store is null))
|
||||
{
|
||||
Store.Dispose();
|
||||
Store = null;
|
||||
}
|
||||
|
||||
if (Engine != null)
|
||||
if (!(Engine is null))
|
||||
{
|
||||
Engine.Dispose();
|
||||
Engine = null;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace Wasmtime.Tests
|
||||
|
||||
public class FunctionThunkingTests : IClassFixture<FunctionThunkingFixture>
|
||||
{
|
||||
const string THROW_MESSAGE = "Test error messages for wasmtime dotnet bidnings unit tests.";
|
||||
const string THROW_MESSAGE = "Test error message for wasmtime dotnet unit tests.";
|
||||
|
||||
class MyHost : IHost
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace Wasmtime.Tests
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ItPropegatesExceptionsToCallersViaTraps()
|
||||
public void ItPropagatesExceptionsToCallersViaTraps()
|
||||
{
|
||||
var host = new MyHost();
|
||||
using (var instance = Fixture.Module.Instantiate(host))
|
||||
|
||||
Reference in New Issue
Block a user