Commit d697e716 authored by adamk's avatar adamk Committed by Commit bot

In Scope::Print, skip null scope_names_ just like empty ones

R=littledan@chromium.org

Review URL: https://codereview.chromium.org/1398603002

Cr-Commit-Position: refs/heads/master@{#31168}
parent 9752a598
......@@ -938,7 +938,7 @@ void Scope::Print(int n) {
// Print header.
Indent(n0, Header(scope_type_, function_kind_, is_declaration_scope()));
if (!scope_name_->IsEmpty()) {
if (scope_name_ != nullptr && !scope_name_->IsEmpty()) {
PrintF(" ");
PrintName(scope_name_);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment