Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Unified Diff: src/objects.cc

Issue 1973193002: [esnext] Async function toString support (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@async-run3
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/harmony/async-await-basic.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ");
}
« no previous file with comments | « no previous file | test/mjsunit/harmony/async-await-basic.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698