Index: src/objects-printer.cc |
diff --git a/src/objects-printer.cc b/src/objects-printer.cc |
index 501c3db35b15dc32e94a3838a4597843744674b6..0a386270505650434970f97cca5afb351283bb2e 100644 |
--- a/src/objects-printer.cc |
+++ b/src/objects-printer.cc |
@@ -870,6 +870,9 @@ void JSFunction::JSFunctionPrint(std::ostream& os) { // NOLINT |
if (has_initial_map()) os << Brief(initial_map()); |
os << "\n - shared_info = " << Brief(shared()); |
os << "\n - name = " << Brief(shared()->name()); |
+ if (shared()->is_generator()) { |
+ os << "\n - generator"; |
+ } |
os << "\n - context = " << Brief(context()); |
if (shared()->bound()) { |
os << "\n - bindings = " << Brief(function_bindings()); |