Index: src/string.js |
diff --git a/src/string.js b/src/string.js |
index badfad353603a9ae2214f806e0cd30911c297521..d9ca035fb5f32983d34bc970fa24867f0acce268 100644 |
--- a/src/string.js |
+++ b/src/string.js |
@@ -824,6 +824,7 @@ function StringFromCharCode(code) { |
for (i = 0; i < n; i++) { |
var code = %_Arguments(i); |
if (!%_IsSmi(code)) code = ToNumber(code) & 0xffff; |
+ if (code < 0) code = code & 0xffff; |
if (code > 0x7f) break; |
%_OneByteSeqStringSetChar(one_byte, i, code); |
} |