diff --git a/utils/pas2js/docs/translation.html b/utils/pas2js/docs/translation.html
index ed100b60a4..02a69ed425 100644
--- a/utils/pas2js/docs/translation.html
+++ b/utils/pas2js/docs/translation.html
@@ -595,8 +595,8 @@ End.
Double := Currency -> Double = Currency/10000
Currency := Double -> Currency = Math.floor(Double*10000)
JSValue := Currency -> JSValue = Currency/10000
- Keep in mind that a double has only 52 bits for the number, so calculating
- values greater than 450,359,962,737 might give a different result than in Delphi/FPC.
+ Keep in mind that a double has only 54 bits for the number, so calculating
+ values greater than 900,719,925,474 might give a different result than in Delphi/FPC.
See SysUtils.MinCurrency/MaxCurrency
@@ -1606,11 +1606,19 @@ function(){
Class.$unitname is the unit name. E.g. TClassA.$unitname == 'MyModule'.
The "is"-operator is implemented using "isPrototypeOf". Note that "instanceof" cannot be used, because classes are JS objects.
The "as" operator is implemented as rtl.as(Object,Class).
- Supported: constructor, destructor, private, protected, public,
- strict private, strict protected, class vars, class methods,
- class constructor, external methods,
- virtual, override, abstract, call inherited, assigned(), type cast,
- overloads, reintroduce, sealed class, nested types.
+ Supported:
+
+ - constructor, destructor
+ - private, protected, public, strict private, strict protected
+ - class vars, const, nested types
+ - methods, class methods, class constructor, external methods
+ - method modifiers overload, reintroduce, virtual, override, abstract, static, external name
+ - call inherited
+ - assigned()
+ - type cast
+ - class sealed, class abstract
+
+
Not supported: class destructor
Property:
@@ -1619,7 +1627,7 @@ function(){
stored modifier, index modifier.
Not supported: getter/setter to an array element,
e.g. property A: char read FArray[0];
- Class property getter/setter are not static as in Delphi.
+ Class property getter/setter can be static or non static. Delphi: must be static.
The Index modifier supports any constant, e.g. a string, while
Delphi only allows an ordinal (longint). -2147483648 is not a special
number in pas2js. Overriding a property with an index property is allowed
@@ -1918,8 +1926,8 @@ function(){
Translating attributes
- Attributes are not yet implemented. To make porting code easier there
- is a {$modeswitch ignoreattributes}, that ignores attributes.
+ Attributes are stored in the TTypeInfo objects as streams stored in an array.
+ See the TypInfo function GetRTTIAttributes for details.
@@ -3035,8 +3043,8 @@ End.
SmallInt - signed 16-bit
LongWord - unsigned 32-bit
LongInt - signed 32-bit
-
NativeUInt - unsigned 52-bit
-
NativeInt - signed 53-bit
+
NativeUInt - unsigned 53-bit
+
NativeInt - signed 54-bit
Notes:
@@ -3088,7 +3096,6 @@ End.
Not supported elements
- - Attributes
- Class destructor
- Enums with custom values
- Generics