Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 5e61761c94ac7bdcefb4f7776c02af6c0c6f2569..f56f99b8f6d7355698f62f998191e0ac26dfb642 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -754,7 +754,7 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
if (options & StackTrace::kFunctionName) { |
Handle<Object> fun_name(fun->shared()->name(), this); |
- if (fun_name->ToBoolean()->IsFalse()) { |
+ if (!fun_name->BooleanValue()) { |
fun_name = Handle<Object>(fun->shared()->inferred_name(), this); |
} |
CHECK_NOT_EMPTY_HANDLE(this, |