Skip to content

Commit

Permalink
Spec: Fix minor type issue in consume budget if permitted
Browse files Browse the repository at this point in the history
The algorithm takes a long when it should just take an integer (as the sum of many longs may not fit in a long).
  • Loading branch information
alexmturner authored Jul 31, 2024
1 parent b87549a commit 4aaa120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,8 @@ null |timeout|:
|currentWallTime|.
1. [=set/Append=] |report| to the user agent's [=aggregatable report cache=].

To <dfn algorithm>consume budget if permitted</dfn> given a {{long}} |value|, an
[=origin=] <var ignore=''>origin</var>, a [=context type=] |api| and a
To <dfn algorithm>consume budget if permitted</dfn> given an integer |value|,
an [=origin=] <var ignore=''>origin</var>, a [=context type=] |api| and a
[=moment=] |currentTime|, perform [=implementation-defined=] steps. They return
a [=boolean=], which indicates whether there is sufficient 'contribution budget'
left to send the requested contribution |value|. This budget should be bound to
Expand Down

0 comments on commit 4aaa120

Please sign in to comment.