- From: Yoshisato Yanagisawa <notifications@github.com>
- Date: Tue, 04 Feb 2025 20:04:21 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 5 February 2025 04:04:25 UTC
@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}}"]: Maybe? After reviewing this, I got familiar with the algorithm well and can easily read this like so. However, I am not sure how people first look feel on this. Let me delegate the decision to other reviewers on this. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1752#discussion_r1942215952 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/pull/1752/review/2594570578@github.com>
Received on Wednesday, 5 February 2025 04:04:25 UTC