| Index: src/ast/scopes.cc
|
| diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
|
| index beffa53d74a971a1e39c02e8eb6dd5224b4c21f8..36831d50e2339fb1dee690bfd3e0ed7520bd4638 100644
|
| --- a/src/ast/scopes.cc
|
| +++ b/src/ast/scopes.cc
|
| @@ -838,7 +838,10 @@ static const char* Header(ScopeType scope_type, FunctionKind function_kind,
|
| case EVAL_SCOPE: return "eval";
|
| // TODO(adamk): Should we print concise method scopes specially?
|
| case FUNCTION_SCOPE:
|
| - return IsArrowFunction(function_kind) ? "arrow" : "function";
|
| + if (IsGeneratorFunction(function_kind)) return "function*";
|
| + if (IsAsyncFunction(function_kind)) return "async function";
|
| + if (IsArrowFunction(function_kind)) return "arrow";
|
| + return "function";
|
| case MODULE_SCOPE: return "module";
|
| case SCRIPT_SCOPE: return "global";
|
| case CATCH_SCOPE: return "catch";
|
|
|