mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Actually limit number of stored exception contexts.
R=brianwilkerson@google.com BUG= Review-Url: https://codereview.chromium.org/2666003002 .
This commit is contained in:
parent
663f2dc5d6
commit
6595c05864
1 changed files with 3 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue