Browse Source

packages: rtl: fixed TTypeInfoRecord.RecordType

mattias 4 years ago
parent
commit
30678055c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl/typinfo.pas

+ 1 - 1
packages/rtl/typinfo.pas

@@ -278,7 +278,7 @@ type
 
 
   TTypeInfoRecord = class external name 'rtl.tTypeInfoRecord'(TTypeInfoStruct)
   TTypeInfoRecord = class external name 'rtl.tTypeInfoRecord'(TTypeInfoStruct)
   public
   public
-    RecordType: TJSObject external name 'record';
+    RecordType: TJSObject external name '$record';  // only records with class vars, else jsundefined
   end;
   end;
 
 
   { TTypeInfoClass - Kind = tkClass }
   { TTypeInfoClass - Kind = tkClass }