Thanks for you patch.

Null characters are perfectly legal in JavaScript strings and they do not
terminate the strings:


V8 version 3.1.4 (candidate)
var s = "\u0000"
s.length
1
s.charCodeAt(0)
0


The API call is doing the right thing by putting the null characters in the
resulting string and honoring the length parameter. As an embedder you should
pass in the right length.

http://codereview.chromium.org/6524031/

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

Reply via email to