Browse Source

pastojs: note about typeinfo(aClassVar)

git-svn-id: trunk@42310 -
Mattias Gaertner 6 years ago
parent
commit
5ee32296f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/pas2js/docs/translation.html

+ 2 - 1
utils/pas2js/docs/translation.html

@@ -2955,9 +2955,10 @@ End.
     type, not of its current runtime value. The exception is a class and class-of instance
     variable (e.g. <i>var o: TObject; ... typeinfo(o)</i>), which returns the
     typeinfo of the current runtime value.
-    If <i>o</i> is <i>null</i> it will give a JS error.<br>
+    If <i>o</i> is <i>nil</i> it will give a JS error.<br>
     Local types (i.e. inside a procedure) do not have typeinfo.<br>
     Open array parameters are not yet supported.<br>
+    Note that FPC <i>typeinfo(aClassVar)<i> returns the compiletime type, so it works on <i>nil</i>.<br>
     </div>