Mads, The issue is that String::New(char*, size_t) is meant to read a UTF8 encoded byte array. In UTF8 the null character terminates the sequence.
To achieve the javascript string "\u0000" from a UTF8 sequence the user should
do String::New("\xC0\x80", 2); or String::New("\xC0\x80\0", 3);
http://codereview.chromium.org/6524031/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
