From 5ee32296f0970ea7fe40bcaf3410c8f5522898f5 Mon Sep 17 00:00:00 2001 From: Mattias Gaertner Date: Sun, 30 Jun 2019 14:44:54 +0000 Subject: [PATCH] pastojs: note about typeinfo(aClassVar) git-svn-id: trunk@42310 - --- utils/pas2js/docs/translation.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/pas2js/docs/translation.html b/utils/pas2js/docs/translation.html index e4928ea138..771616ed0b 100644 --- a/utils/pas2js/docs/translation.html +++ b/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. var o: TObject; ... typeinfo(o)), which returns the typeinfo of the current runtime value. - If o is null it will give a JS error.
+ If o is nil it will give a JS error.
Local types (i.e. inside a procedure) do not have typeinfo.
Open array parameters are not yet supported.
+ Note that FPC typeinfo(aClassVar) returns the compiletime type, so it works on nil.