Index: src/runtime/runtime-forin.cc |
diff --git a/src/runtime/runtime-forin.cc b/src/runtime/runtime-forin.cc |
index 68c1092bd6cae138245a27ec73c8395f5b52715f..421b395e5db7e52af787e24e1151f65a84608285 100644 |
--- a/src/runtime/runtime-forin.cc |
+++ b/src/runtime/runtime-forin.cc |
@@ -22,6 +22,7 @@ namespace { |
// deletions during a for-in. |
MaybeHandle<HeapObject> Enumerate(Handle<JSReceiver> receiver) { |
Isolate* const isolate = receiver->GetIsolate(); |
+ JSObject::MakePrototypesFast(receiver, kStartAtReceiver, isolate); |
FastKeyAccumulator accumulator(isolate, receiver, |
KeyCollectionMode::kIncludePrototypes, |
ENUMERABLE_STRINGS); |