whatwg / urlpattern

URL Pattern Standard
https://urlpattern.spec.whatwg.org/
Other
157 stars 22 forks source link

Incorrect type in group name assignment #208

Closed rubycon closed 9 months ago

rubycon commented 9 months ago

What is the issue with the URL Pattern Standard?

The pattern parser field next numeric name is of type number but in add part it's assigned to the group name which is of type string without conversion:

  1. Otherwise if regexp or wildcard token is not null: 1. Set name to parser’s next numeric name.

It should be serialized to a string before assignment.