| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 05a1ab05ccb9fa2c54dbc82f4c6fbe8e4b7ea9db..4824488ce02e3730411a65af3ec5a284c5a1ac10 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -12192,10 +12192,16 @@ Handle<String> JSFunction::ToString(Handle<JSFunction> function) {
|
| IncrementalStringBuilder builder(isolate);
|
| if (!shared_info->is_arrow()) {
|
| if (shared_info->is_concise_method()) {
|
| - if (shared_info->is_generator()) builder.AppendCharacter('*');
|
| + if (shared_info->is_generator()) {
|
| + builder.AppendCharacter('*');
|
| + } else if (shared_info->is_async()) {
|
| + builder.AppendCString("async ");
|
| + }
|
| } else {
|
| if (shared_info->is_generator()) {
|
| builder.AppendCString("function* ");
|
| + } else if (shared_info->is_async()) {
|
| + builder.AppendCString("async function ");
|
| } else {
|
| builder.AppendCString("function ");
|
| }
|
|
|