mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-06-03 13:18:10 +02:00
* Fix error when no import extensions registered
This commit is contained in:
parent
6e6647b2c0
commit
2d3fbefd0a
@ -458,13 +458,14 @@ Var
|
||||
|
||||
begin
|
||||
aObject[WASIImportName]:=ImportObject;
|
||||
For I:=0 to FImportExtensions.Count-1 do
|
||||
begin
|
||||
Ext:=TImportExtension(FImportExtensions[i]);
|
||||
O:=TJSObject.New;
|
||||
Ext.FillImportObject(O);
|
||||
aObject[Ext.ImportName]:=O;
|
||||
end;
|
||||
if Assigned(FImportExtensions) then
|
||||
For I:=0 to FImportExtensions.Count-1 do
|
||||
begin
|
||||
Ext:=TImportExtension(FImportExtensions[i]);
|
||||
O:=TJSObject.New;
|
||||
Ext.FillImportObject(O);
|
||||
aObject[Ext.ImportName]:=O;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TPas2JSWASIEnvironment.AddExtension(aExtension : TImportExtension);
|
||||
|
Loading…
Reference in New Issue
Block a user