Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index f50c2fad876a7c8898ce1dc56451166e73815dd6..feb0af21a5f8d7d2612b2c34459006b94ee89803 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -316,9 +316,8 @@ static bool IsVisibleInStackTrace(JSFunction* fun, |
// exposed, in which case the native flag is set. |
// The --builtins-in-stack-traces command line flag allows including |
// internal call sites in the stack trace for debugging purposes. |
- if (!FLAG_builtins_in_stack_traces) { |
- if (receiver->IsJSBuiltinsObject()) return false; |
- if (fun->IsBuiltin()) return fun->shared()->native(); |
+ if (!FLAG_builtins_in_stack_traces && fun->IsBuiltin()) { |
+ return fun->shared()->native(); |
} |
return true; |
} |