Comment #2 on issue 2128 by [email protected]: String equality broken on
slices of external strings
http://code.google.com/p/v8/issues/detail?id=2128
Not sure if this is helpful but:
I get a crash on the last equality check of the code posted above:
#
# Fatal error in src\objects.cc, line 6786
# CHECK(ca <= unibrow::Utf16::kMaxNonSurrogateCharCode) failed
#
Also, I noticed this behaviour:
var s = readbinary("whyfp.pdf");
var u = s.slice(10, 12);
var v = u[0] + u[1];
var w = u + "\xe7";
print(u.charCodeAt(0));
print(v.charCodeAt(0));
print(w.charCodeAt(0));
Running the above outputs:
199
199
65479
I guess these should all be 199, as something is appended to u, so u[0]
stays the same.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev