Updates:
        Status: WorkingAsIntended

Comment #3 on issue 184 by [email protected]: handeling ascii characters
http://code.google.com/p/v8/issues/detail?id=184

Ah, the issue is that there are too few backslashes in your string.

"var a = {fn:'test\\050data', ln:'failed'}; a.fn + '-' + a.ln;"

is a C++ string literal in which the \\ will result in only one backslash -  
therefore, the code that is evaluated
as JavaScript code is:

var a = {fn:'test\050data', ln:'failed'}; a.fn + '-' + a.ln;

which means that the \050 is an escape sequence in the JavaScript string  
literal which will be interpreted as the
character '('.

You should use \\\\050 in the C++ string literal to get two backslashes in  
the code that is evaluated as JavaScript
code.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to