whatwg/urlpattern

Steps `create a component match result` never increments index

Closed this issue · 1 comments

Tiny issue I noticed in the loop of https://wicg.github.io/urlpattern/#create-a-component-match-result, while working on an implementation:

  1. Let index be 1.
  2. While index is less than Get(execResult, "length"):
  1. Let name be component’s group name list[index − 1].
  2. Let value be Get(execResult, ToString(index).
  3. Set groups[name] to value.

index is never incremented, and the loop will never end.

Thanks for catching this!