Skip to content

Commit 25ef462

Browse files
authored
Merge pull request #143 from paulmeyer90/limit
Change report buffer limit to enforce per report type
2 parents 3989cce + 17ca311 commit 25ef462

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

index.src.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,11 @@ <h3 id="notify-observers" algorithm>
10711071

10721072
2. Append |report| to the <a>report buffer</a> associated with |environment|.
10731073

1074-
3. If the <a>report buffer</a> now contains more than 100 reports, remove the
1075-
item at the beginning of the <a>report buffer</a>.
1074+
3. Let |type| be |report|'s <a>type</a>.
1075+
1076+
4. If the <a>report buffer</a> now contains more than 100 reports
1077+
with <a>type</a> equal to |type|, remove the earliest item with <a>type</a>
1078+
equal to |type| in the <a>report buffer</a>.
10761079

10771080
<h3 id="add-report" algorithm>
10781081
Add |report| to |observer|

0 commit comments

Comments
 (0)