Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index bd18302e1a3a5539ea18ffb92ee28f31294c3157..c2277f74f5009340de93bc95aa51313343229711 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -899,7 +899,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapGet) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(JSWeakMap, weakmap, 0); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, key, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
Handle<ObjectHashTable> table(ObjectHashTable::cast(weakmap->table())); |
Handle<Object> lookup(table->Lookup(*key), isolate); |
return lookup->IsTheHole() ? isolate->heap()->undefined_value() : *lookup; |
@@ -910,7 +910,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapHas) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(JSWeakMap, weakmap, 0); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, key, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
Handle<ObjectHashTable> table(ObjectHashTable::cast(weakmap->table())); |
Handle<Object> lookup(table->Lookup(*key), isolate); |
return isolate->heap()->ToBoolean(!lookup->IsTheHole()); |
@@ -921,7 +921,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapDelete) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 2); |
CONVERT_ARG_HANDLE_CHECKED(JSWeakMap, weakmap, 0); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, key, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
Handle<ObjectHashTable> table(ObjectHashTable::cast(weakmap->table())); |
Handle<Object> lookup(table->Lookup(*key), isolate); |
Handle<ObjectHashTable> new_table = |
@@ -935,7 +935,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapSet) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 3); |
CONVERT_ARG_HANDLE_CHECKED(JSWeakMap, weakmap, 0); |
- CONVERT_ARG_HANDLE_CHECKED(JSReceiver, key, 1); |
+ CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); |
Handle<Object> value(args[2], isolate); |
Handle<ObjectHashTable> table(ObjectHashTable::cast(weakmap->table())); |
Handle<ObjectHashTable> new_table = PutIntoObjectHashTable(table, key, value); |