What's the exact JavaScript that's causing the error? I'm unable to reproduce your problem with var hexNum = c = 0x98BADCFE;
The specific message "Malformed number" looks to me like it's coming from code that's trying to convert a floating point number into a string key in an object literal. On Wed, Jun 4, 2014 at 2:59 AM, Alessio <[email protected]> wrote: > Good morning, > I'm trying to use Caja for JavaScript syntax checking purposes. > > When I call "new com.google.caja.parser.js.Parser(...).parse()" and the > code contains something like this "var hexNum = c = 0x98BADCFE;", the > parser throws a com.google.caja.lexer.ParseException with message > "testSource.js:XX+YY - 51: Malformed number 0x98BADCFE". > > Why this happens? This is a correct JavaScript syntax. What should I > change to have it working? > > Thank you, > Alessio > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Google Caja Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
