Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index d2dc1eb439e8f6bab147eee702000a078773a82c..308d7769a01be73e67014de9a48791dd482ae906 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -1784,6 +1784,7 @@ RUNTIME_FUNCTION(Runtime_WeakCollectionSet) { |
CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); |
CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
CONVERT_ARG_HANDLE_CHECKED(Object, value, 2); |
+ RUNTIME_ASSERT(key->IsJSReceiver() || key->IsSymbol()); |
Michael Starzinger
2014/05/12 08:23:14
This applies to all four flavors of operations on
|
Handle<ObjectHashTable> table( |
ObjectHashTable::cast(weak_collection->table())); |
RUNTIME_ASSERT(table->IsKey(*key)); |