Reviewers: jat,

Description:
We were escaping \u000 as \0 when converting from Java to JavaScript --
however, this fails when the next character is a digit since that digit
will be interpreted as part of the escape sequence.  For example,
\u00006 is turned into \06, which is a one-character string <6>.

This patch fixes that bug and more generally uses one- and two-digit
octal escapes (\X or \XX)  where possible rather than 3-character hex
escapes (\xXX).




Please review this at http://gwt-code-reviews.appspot.com/128804

Affected files:
  dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java
dev/core/test/com/google/gwt/dev/js/JsToStringGenerationVisitorAccuracyTest.java


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to