Explorar o código

pastojs: fixed creating enum shortrefs for precompiled code

mattias %!s(int64=4) %!d(string=hai) anos
pai
achega
241cea1865
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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
     begin
     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;