Browse Source

pas2js: docs option -Sj

git-svn-id: trunk@44078 -
Mattias Gaertner 5 years ago
parent
commit
b761498428
2 changed files with 4 additions and 2 deletions
  1. 2 1
      packages/pastojs/src/pas2jscompiler.pp
  2. 2 1
      utils/pas2js/docs/translation.html

+ 2 - 1
packages/pastojs/src/pas2jscompiler.pp

@@ -4672,11 +4672,12 @@ begin
   w('    -Pecmascript5: default');
   w('    -Pecmascript6');
   w('  -S<x>  : Syntax options. <x> is a combination of the following letters:');
+  w('    2    : Same as -Mobjfpc (default)');
   w('    a    : Turn on assertions');
   w('    c    : Support operators like C (*=,+=,/= and -=)');
   w('    d    : Same as -Mdelphi');
+  w('    j    : Allows typed constants to be writeable (default)');
   w('    m    : Enables macro replacements');
-  w('    2    : Same as -Mobjfpc (default)');
   w('  -SI<x>  : Set interface style to <x>');
   w('    -SIcom  : COM, reference counted interface (default)');
   w('    -SIcorba: CORBA interface');

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

@@ -196,11 +196,12 @@ Put + after a boolean switch option to enable it, - to disable it
     -Pecmascript5  : default
     -Pecmascript6
   -S&lt;x&gt;   : Syntax options. &lt;x&gt; is a combination of the following letters:
+    2     : Same as -Mobjfpc (default)
     a     : Turn on assertions
     c     : Support operators like C (*=,+=,/= and -=)
     d     : Same as -Mdelphi
     m     : Enables macro replacements
-    2     : Same as -Mobjfpc (default)
+    j     : Allows typed constants to be writeable (default)
   -SI&lt;x&gt;   : Set interface style to &lt;x&gt;
     -SIcom   : COM, reference counted interface (default)
     -SIcorba : CORBA interface