diff --git a/packages/pastojs/src/fppas2js.pp b/packages/pastojs/src/fppas2js.pp index 09f7eacea8..1c8dd4b336 100644 --- a/packages/pastojs/src/fppas2js.pp +++ b/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