Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: src/string.js

Issue 12039038: Enable Latin-1 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: forgot something Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string.js
diff --git a/src/string.js b/src/string.js
index b39976c51ed8a15332eccabecc2d1c34e26cf962..1675d0934137ad28ad99dc9a18d120fc8643e180 100644
--- a/src/string.js
+++ b/src/string.js
@@ -838,8 +838,7 @@ function StringFromCharCode(code) {
var code = %_Arguments(i);
if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff;
if (code < 0) code = code & 0xffff;
- // TODO(dcarney): Fix for Latin-1.
- if (code > 0x7f) break;
+ if (code > 0xff) break;
%_OneByteSeqStringSetChar(one_byte, i, code);
}
if (i == n) return one_byte;
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698