Browse Source

pastojs: fixed creating enum shortrefs for precompiled code

mattias 4 years ago
parent
commit
241cea1865
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/packages/pastojs/src/fppas2js.pp

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

@@ -27013,8 +27013,8 @@ begin
   for i:=0 to ElRefList.Count-1 do
   for i:=0 to ElRefList.Count-1 do
     begin
     begin
     El:=TPasElement(ElRefList[i]);
     El:=TPasElement(ElRefList[i]);
-    if ElNeedsGlobalAlias(El) then
-      CreateGlobalElPath(El,SectionContext);
+    // Note: they are all needed by precompiled code, do not check ElNeedsGlobalAlias
+    CreateGlobalElPath(El,SectionContext);
     end;
     end;
 end;
 end;