Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index fa04e0fca0a770b9a4ece9b9406d3b9cbf127f39..0baba966a4b27681eb94336b4f6e9fb172e12e7e 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -1579,6 +1579,8 @@ static Handle<Object> TryConvertKey(Handle<Object> key, Isolate* isolate) { |
} |
} else if (key->IsUndefined(isolate)) { |
key = isolate->factory()->undefined_string(); |
+ } else if (key->IsString()) { |
+ key = isolate->factory()->InternalizeString(Handle<String>::cast(key)); |
} |
return key; |
} |