Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index fb97456d3d5700ec162c0faa32c0a97a990f20bb..8f8c69c47c490f6a61564b5a74b64b1f0a86832c 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -12197,6 +12197,8 @@ Handle<String> JSFunction::ToString(Handle<JSFunction> function) { |
} else { |
if (shared_info->is_generator()) { |
builder.AppendCString("function* "); |
+ } else if (shared_info->is_async()) { |
+ builder.AppendCString("async function "); |
caitp (gmail)
2016/05/13 01:01:29
How do we make this work for async arrows and meth
Dan Ehrenberg
2016/05/13 19:10:32
Fixed (arrows already worked) and added tests
|
} else { |
builder.AppendCString("function "); |
} |