Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 69a62f9a6bb8846f39b2d1bcf1f6eca220c363d9..cc01f57bd48579adde85d1fecc932339874b19d9 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -523,10 +523,7 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
} |
if (options & StackTrace::kFunctionName) { |
- Handle<Object> fun_name(fun->shared()->name(), this); |
- if (!fun_name->BooleanValue()) { |
- fun_name = Handle<Object>(fun->shared()->inferred_name(), this); |
- } |
+ Handle<Object> fun_name(fun->shared()->DebugName(), this); |
JSObject::AddProperty(stack_frame, function_key, fun_name, NONE); |
} |