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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 2666003002: Actually limit number of stored exception contexts. (Closed)
Patch Set: Created 3 years, 11 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: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index 7e923024015fde3f256eb2ea3ed6fdd776a37e52..46a4056b7eae0cbfb882e9fbb2eb913057c62d50 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -1164,7 +1164,9 @@ class AnalysisDriver {
String _storeExceptionContext(
String path, FileState libraryFile, exception, StackTrace stackTrace) {
- if (allowedNumberOfContextsToWrite > 0) {
+ if (allowedNumberOfContextsToWrite <= 0) {
+ return null;
+ } else {
allowedNumberOfContextsToWrite--;
}
try {
« 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