Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index aa21bdb9f2de8c3ab5a3a89da5bba1ac56b205c8..b5eaa5174b1de3783f68c7495ad0e9f2da4baf89 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -685,9 +685,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapGet) { |
NoHandleAllocation ha; |
ASSERT(args.length() == 2); |
CONVERT_ARG_CHECKED(JSWeakMap, weakmap, 0); |
- // TODO(mstarzinger): Currently we cannot use JSProxy objects as keys |
- // because they cannot be cast to JSObject to get an identity hash code. |
- CONVERT_ARG_CHECKED(JSObject, key, 1); |
+ CONVERT_ARG_CHECKED(JSReceiver, key, 1); |
return weakmap->table()->Lookup(*key); |
} |
@@ -696,8 +694,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_WeakMapSet) { |
HandleScope scope(isolate); |
ASSERT(args.length() == 3); |
CONVERT_ARG_CHECKED(JSWeakMap, weakmap, 0); |
- // TODO(mstarzinger): See Runtime_WeakMapGet above. |
- CONVERT_ARG_CHECKED(JSObject, key, 1); |
+ CONVERT_ARG_CHECKED(JSReceiver, key, 1); |
Handle<Object> value(args[2]); |
Handle<ObjectHashTable> table(weakmap->table()); |
Handle<ObjectHashTable> new_table = PutIntoObjectHashTable(table, key, value); |