Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index a52b95719db05276362f7325ec32be751b37d87a..0d885fc3dbc851d8ce194e4ae8e6be62ce5b5076 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -270,6 +270,7 @@ MaybeHandle<String> Factory::NewStringFromTwoByte(Vector<const uc16> string, |
int length = string.length(); |
const uc16* start = string.start(); |
if (String::IsOneByte(start, length)) { |
+ if (length == 1) return LookupSingleCharacterStringFromCode(string[0]); |
Handle<SeqOneByteString> result; |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate(), |