Browse Source

Allow constructor RTTI info in Pas2Js generated file.

Henrique Gottardi Werlang 2 years ago
parent
commit
8ecdc6ed05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/pastojs/src/fppas2js.pp

+ 1 - 1
packages/pastojs/src/fppas2js.pp

@@ -21219,7 +21219,7 @@ begin
       // check visibility
       // check visibility
       case mt of
       case mt of
       mtClass:
       mtClass:
-        if P.Visibility<>visPublished then continue;
+        if (P.Visibility<>visPublished) and (not P.InheritsFrom(TPasConstructor) or (P.Visibility <> visPublic)) then continue;
       mtInterface: ; // all members of an interface are published
       mtInterface: ; // all members of an interface are published
       mtRecord:
       mtRecord:
         // a published record publishes all non private members
         // a published record publishes all non private members