Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Unified Diff: src/scopes.cc

Issue 1398603002: In Scope::Print, skip null scope_names_ just like empty ones (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 7d52db85a9faf74df460aade3e557bbcb5818e4a..dbcc4b60832bf33d5e096bab9f2634128263b25b 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -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_);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698