ClassName nil



ClassName nil
Pas2JS pascal source code
Type TObjClass = Class Of TObject; { main.pas } var o : TObjClass; Begin try writeln(o.ClassName); except on E : Exception do WriteLn(E.Message); end; o:=TObject; writeln(o.ClassName); { <<< CONSOLE OUTPUTS >>> TypeError, Cannot read property '$ClassName' of null TObject }