From 241cea18652d152b360c1687f12326193afefe0d Mon Sep 17 00:00:00 2001 From: mattias Date: Mon, 8 Mar 2021 20:34:43 +0000 Subject: [PATCH] pastojs: fixed creating enum shortrefs for precompiled code --- compiler/packages/pastojs/src/fppas2js.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/packages/pastojs/src/fppas2js.pp b/compiler/packages/pastojs/src/fppas2js.pp index 91df961..cdd5371 100644 --- a/compiler/packages/pastojs/src/fppas2js.pp +++ b/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;