Index: src/ic.cc |
diff --git a/src/ic.cc b/src/ic.cc |
index e1405396c1fe90cec1c272f3c7192175c4aad924..0377ba97b2e35ae2cbd4db0d21370f0e54c08379 100644 |
--- a/src/ic.cc |
+++ b/src/ic.cc |
@@ -983,6 +983,8 @@ static Handle<Object> TryConvertKey(Handle<Object> key, Isolate* isolate) { |
key = Handle<Smi>(Smi::FromInt(int_value), isolate); |
} |
} |
+ } else if (key->IsString()) { |
+ key = isolate->factory()->InternalizeString(Handle<String>::cast(key)); |
} else if (key->IsUndefined()) { |
key = isolate->factory()->undefined_string(); |
} |