Closed yoshisatoyanagisawa closed 7 months ago
@domenic @azaika I guess you have opinions in this area.
IMO, raising is the good option. The "or" condition allows empty lists because they are naturally considered logical identity, and this does not fits to the "not".
I agree with @azaika
Thank you for sharing your opinions, both. Raising sounds the way to go. However, to gather opinions from others, let me leave the github issue open for several weeks before making the final decision.
Drafted the PR in https://github.com/w3c/ServiceWorker/pull/1711
Two weeks have passed. It might be fine to close this. No contents in the "not" condition is error.
Please feel free to leave comments in the spec PR by the way.
If "not" condition gets an empty condition, i.e. {}, how should it be handled? I suppose options are:
We used to treat an empty list to "or" condition as always false. However, I suppose it fine to raise. What do others think?