wasi: clean up

This commit is contained in:
mattias 2022-07-13 16:28:17 +02:00
parent eb74dbf3b0
commit 31d1d84886
2 changed files with 2 additions and 12 deletions

View File

@ -556,13 +556,6 @@ function TWASIHost.CreateWebAssembly(aPath: string; aImportObject: TJSObject
Result:=TJSResponse(Res).arrayBuffer._then(@ArrayOK,Nil) Result:=TJSResponse(Res).arrayBuffer._then(@ArrayOK,Nil)
end; end;
function DoFail(Res : jsValue) : JSValue;
begin
Console.Log('Failed to fetch webassembly '+aPath+' : ');
Console.Debug(res);
end;
begin begin
Result:=fetch(aPath)._then(@fetchOK); Result:=fetch(aPath)._then(@fetchOK);
end; end;
@ -643,6 +636,7 @@ Var
function DoFail(aValue: JSValue): JSValue; function DoFail(aValue: JSValue): JSValue;
begin begin
Result:=True;
Console.Log('Failed to create webassembly. Reason:'); Console.Log('Failed to create webassembly. Reason:');
Console.Debug(aValue); Console.Debug(aValue);
end; end;
@ -905,7 +899,6 @@ var
Result:=true; Result:=true;
end; end;
begin begin
BufferBytes:=TJSArray.New; BufferBytes:=TJSArray.New;
view:=getModuleMemoryDataView(); view:=getModuleMemoryDataView();
@ -1230,7 +1223,6 @@ var
Result:=true; Result:=true;
end; end;
begin begin
bytesRead:=0; bytesRead:=0;
view:=getModuleMemoryDataView(); view:=getModuleMemoryDataView();

View File

@ -9,9 +9,7 @@ uses
Type Type
{ TWASIHostApplication } { TBrowserWASIHostApplication }
TBrowserWASIHostApplication = class(TBrowserApplication) TBrowserWASIHostApplication = class(TBrowserApplication)
private private