On Fri, Apr 9, 2010 at 4:50 PM, Ray Cromwell <[email protected]> wrote:
> What about JS string promotion tho? Imagine the following: > > var x = "Hello"; > var y = 2.0041234E3 > alert(x + y); > > If y was originally "20041234000" but JsToStringGenerationVisitor > serialized it in scientific notation, then this would be wrong, since > the user would expect "Hello 20041234000". Testing this in the Chrome > console, it works, become y=2.0041234E3 gets toStringed by the JS > runtime as "20041234", so maybe you're right. Still doesn't make me > feel warm and fuzzy inside. Changing it is fine. However, the ideal change would be to whichever way takes the fewest bytes! Lex -- http://groups.google.com/group/Google-Web-Toolkit-Contributors To unsubscribe, reply using "remove me" as the subject.
