Chromium Code Reviews| 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; |
| } |