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

Unified Diff: src/isolate.cc

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: Try new strategy (Option C) Created 4 years, 8 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
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 559f0a0292b689d78e05ce8ef0bf3a78633db533..6f7267de180e3088a92072ff3ee96b9b8fed8748 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -329,6 +329,7 @@ static bool IsVisibleInStackTrace(JSFunction* fun,
}
// Skip all frames until we've seen the caller.
if (!(*seen_caller)) return false;
+
// Functions defined in native scripts are not visible unless directly
// exposed, in which case the native flag is set.
// The --builtins-in-stack-traces command line flag allows including
@@ -336,6 +337,10 @@ static bool IsVisibleInStackTrace(JSFunction* fun,
if (!FLAG_builtins_in_stack_traces && fun->shared()->IsBuiltin()) {
return fun->shared()->native();
}
+
+ // Async function wrappers are not visible in stack trace
+ if (IsAsyncFunction(fun->shared()->kind())) return false;
caitp (gmail) 2016/04/26 22:01:30 not needed anymore in Option C
+
return true;
}
« src/frames.cc ('K') | « src/globals.h ('k') | src/js/harmony-async-await.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698