- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Thu, 30 Jan 2025 23:58:35 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <w3c/ServiceWorker/pull/1752/review/2585909191@github.com>
@yoshisatoyanagisawa commented on this pull request. > + <h3 id="count-router-inner-conditions"><dfn>Count Router Inner Conditions</dfn></h3> + + : Input + :: |condition|, a {{RouterCondition}} + :: |result|, a [=count router condition result=] + :: |maxCount|, a number + :: |maxDepth|, a number + : Output + :: |result|, a [=count router condition result=] + + 1. Increment |result|'s [=count router condition result/total count=] by one. + 1. If |result|'s [=count router condition result/total count=] exceeds |maxCount|, return |result|. + 1. If |result|'s [=count router condition result/depth=] exceeds |maxDepth|, return |result|. + 1. If |condition|["{{RouterCondition/_or}}"] [=map/exists=], then: + 1. Increment |result|'s [=count router condition result/depth=] by one. + 1. For each |orCondition| of |condition|["{{RouterCondition/_or}}"]: I feel that the number of conditions under |orCondition| may not be counted? e.g. or: [{singleRule}, {singleRule}, {singleRule}] |result| might be overwritten by the result for {singleRule} for three times, but we want |result|'s [=total count=] to be three. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1752#pullrequestreview-2585909191 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1752/review/2585909191@github.com>
Received on Friday, 31 January 2025 07:58:39 UTC