User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:220.127.116.11) Gecko/20100106 Ubuntu/9.10 (karmic) Firefox/3.5.7 Build Identifier: Source from CVS trunk @ 20091113 Parsing this code: seed = (typeof fixedseed == "number") ? fixedseed : (Math.round(Math.random() * 0xffffffff)); and running to source on the ASt that is produced, will result in something like this: seed = (typeof fixedseed == "number") ? fixedseed : (Math.round(Math.random() * ffffffff)); Note that the 0x part of 0xffffffff is stripped off. Reproducible: Always
Happens with trunk also.
Created attachment 599577 [details] [diff] [review] Patch for parsing hexadecimal numbers Patch for parsing hexadecimal numbers. Try running the following before and after the patch: new Parser().parse("var color = 0xAABBCC;", "", 1).toSource();
You need to log in before you can comment on or make changes to this bug.