Index: src/string-stream.cc |
diff --git a/src/string-stream.cc b/src/string-stream.cc |
index 92fff27683581784d8627f001daf8c937e1af31e..2801d23cda088b784916aaf3ccdf5c30e7efcab6 100644 |
--- a/src/string-stream.cc |
+++ b/src/string-stream.cc |
@@ -531,7 +531,7 @@ void StringStream::PrintPrototype(JSFunction* fun, Object* receiver) { |
PrototypeIterator::START_AT_RECEIVER); |
!iter.IsAtEnd(); iter.Advance()) { |
if (iter.GetCurrent()->IsJSObject()) { |
- Object* key = JSObject::cast(iter.GetCurrent())->SlowReverseLookup(fun); |
+ Object* key = iter.GetCurrent<JSObject>()->SlowReverseLookup(fun); |
if (key != isolate->heap()->undefined_value()) { |
if (!name->IsString() || |
!key->IsString() || |