From 0f2ec58bbe2e2a16adf78560f5ccac114cbb2bb2 Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 7 Nov 2020 12:10:24 +0000 Subject: [PATCH] pastojs: fixed shortrefglobals for minimal class interface, issue 38042 --- compiler/packages/pastojs/src/fppas2js.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/packages/pastojs/src/fppas2js.pp b/compiler/packages/pastojs/src/fppas2js.pp index 09f7eac..1c8dd4b 100644 --- a/compiler/packages/pastojs/src/fppas2js.pp +++ b/compiler/packages/pastojs/src/fppas2js.pp @@ -15388,7 +15388,7 @@ begin RaiseNotSupported(El,AContext,20180405093512); end; NeedInitFunction:=(pcsfPublished in Scope.Flags) or HasTypeInfo(El,AContext) - or (IntfKind<>''); + or (IntfKind<>'') or (coShortRefGlobals in Options); end; if NeedInitFunction then