WICG / budget-api

Proposal for a Budget API
https://wicg.github.io/budget-api/
Other
26 stars 11 forks source link

The reserve() method goes async too early #9

Closed foolip closed 7 years ago

foolip commented 7 years ago

https://wicg.github.io/budget-api/#dom-budgetservice-reserve

"run the following steps in parallel" comes before any of the steps of the algorithm. Because the entry settings object does not stay constant, in a pedantic reading it's not clear when it should be evaluated. Chromium's implementation goes async after the SecurityError exception handling, and that would make sense for the spec as well.