Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index dffa959c3cb3473f972770bd70b9bff973157e6e..d71383d6e571c818ef0e59382ffaa3610b10ae53 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2417,9 +2417,7 @@ MUST_USE_RESULT static MaybeObject* CharFromCode(Isolate* isolate, |
Object* char_code) { |
uint32_t code; |
if (char_code->ToArrayIndex(&code)) { |
Toon Verwaest
2013/04/16 22:19:30
This currently works by accident I presume; given
|
- if (code <= 0xffff) { |
- return isolate->heap()->LookupSingleCharacterStringFromCode(code); |
- } |
+ return isolate->heap()->LookupSingleCharacterStringFromCode(code & 0xffff); |
} |
return isolate->heap()->empty_string(); |
} |