Actually limit number of stored exception contexts.

R=brianwilkerson@google.com
BUG=

Review-Url: https://codereview.chromium.org/2666003002 .
This commit is contained in:
Konstantin Shcheglov 2017-01-31 07:10:39 -08:00
parent 663f2dc5d6
commit 6595c05864

View file

@ -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 {