Browse Source

fcl-passrc: fixed compile with pas2js

git-svn-id: trunk@48139 -
(cherry picked from commit 000de377b9986a921288e8838374756d8be1b323)
Mattias Gaertner 4 years ago
parent
commit
e9ffb208f4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-passrc/src/pasresolver.pp

+ 2 - 1
packages/fcl-passrc/src/pasresolver.pp

@@ -9205,7 +9205,7 @@ begin
 
 
   // check index and name
   // check index and name
   CheckConstExpr(El.ExportIndex,[revkInt,revkUInt],'integer');
   CheckConstExpr(El.ExportIndex,[revkInt,revkUInt],'integer');
-  CheckConstExpr(El.ExportName,[revkString,revkUnicodeString],'string');
+  CheckConstExpr(El.ExportName,revkAllStrings,'string');
 end;
 end;
 
 
 procedure TPasResolver.FinishProcParamAccess(ProcType: TPasProcedureType;
 procedure TPasResolver.FinishProcParamAccess(ProcType: TPasProcedureType;
@@ -12257,6 +12257,7 @@ begin
   writeln('TPasResolver.AddExportSymbol ',GetObjName(El));
   writeln('TPasResolver.AddExportSymbol ',GetObjName(El));
   {$ENDIF}
   {$ENDIF}
   // Note: export symbol is not added to scope
   // Note: export symbol is not added to scope
+  if El=nil then ;
 end;
 end;
 
 
 procedure TPasResolver.AddEnumType(El: TPasEnumType);
 procedure TPasResolver.AddEnumType(El: TPasEnumType);