Browse Source

pastojs: delay RTTI init of dynamic and static array specializations

git-svn-id: trunk@46750 -
Mattias Gaertner 5 years ago
parent
commit
545ee82ec4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/pastojs/src/fppas2js.pp

+ 2 - 0
packages/pastojs/src/fppas2js.pp

@@ -16770,6 +16770,8 @@ begin
     end
   else if (C=TPasArrayType) then
     begin
+    if not HasTypeInfo(El,AContext) then
+      exit; // no RTTI needed
     // pas.unitname.$rtti.TArr.eltype=$mod.$rtti.TBird;
     aResolver:=AContext.Resolver;
     Arr:=TPasArrayType(El);