Browse Source

fcl-json: fixed compile pas2js

mattias 3 years ago
parent
commit
1b7aefc11d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-json/src/fpjson.pp

+ 2 - 0
packages/fcl-json/src/fpjson.pp

@@ -803,8 +803,10 @@ implementation
 
 
 Uses typinfo;
 Uses typinfo;
 
 
+{$IFNDEF Pas2js}
 const
 const
   HexDigits: array[0..15] of char = '0123456789ABCDEF';
   HexDigits: array[0..15] of char = '0123456789ABCDEF';
+{$ENDIF}
 
 
 Resourcestring
 Resourcestring
   SErrCannotConvertFromNull = 'Cannot convert data from Null value';
   SErrCannotConvertFromNull = 'Cannot convert data from Null value';