Index: src/ic/ic.cc |
diff --git a/src/ic/ic.cc b/src/ic/ic.cc |
index 88520029132b9daedba28ae1e5650b3994a1f078..8cd06868c0c3fdd215b87d76ec184bad3307c209 100644 |
--- a/src/ic/ic.cc |
+++ b/src/ic/ic.cc |
@@ -2035,10 +2035,10 @@ MaybeHandle<Object> KeyedStoreIC::Store(Handle<Object> object, |
Handle<Object> store_handle; |
Handle<Code> stub = megamorphic_stub(); |
- if (key->IsInternalizedString()) { |
+ if (key->IsInternalizedString() || key->IsSymbol()) { |
ASSIGN_RETURN_ON_EXCEPTION( |
isolate(), store_handle, |
- StoreIC::Store(object, Handle<String>::cast(key), value, |
+ StoreIC::Store(object, Handle<Name>::cast(key), value, |
JSReceiver::MAY_BE_STORE_FROM_KEYED), |
Object); |
if (!is_target_set()) { |