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

Unified Diff: tools/gn/functions.cc

Issue 552843005: Convert GN visibility to be a list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/BUILD.gn ('k') | tools/gn/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index faa7437690eff124487acd73d90a128dba7e0570..f02c7e80a16938a1871fdf81378718d20b1cf0ca 100644
--- a/tools/gn/functions.cc
+++ b/tools/gn/functions.cc
@@ -774,6 +774,8 @@ Value RunFunction(Scope* scope,
Value result = found_function->second.executed_block_runner(
function, args.list_value(), &block_scope, err);
+ if (err->has_error())
+ return Value();
if (!block_scope.CheckForUnusedVars(err))
return Value();
« no previous file with comments | « chrome/BUILD.gn ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698