Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 6fd5d96f0495c7963145c554012f0623b6c3b658..31bfca67d157c94dcae3d9a73044ade457f66d64 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -3352,6 +3352,7 @@ class AstNodeFactory final BASE_EMBEDDED { |
Variable::Kind variable_kind, |
int start_position = RelocInfo::kNoPosition, |
int end_position = RelocInfo::kNoPosition) { |
+ DCHECK_NOT_NULL(name); |
return new (zone_) |
VariableProxy(zone_, name, variable_kind, start_position, end_position); |
} |