Skip to content

Commit

Permalink
Serialize the next numeric name
Browse files Browse the repository at this point in the history
We need to explicitly convert this from an integer to a string.

Fixes #208.
  • Loading branch information
jeremyroman authored Jan 29, 2024
1 parent c9c56ee commit 1259680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ To <dfn>add a part</dfn> given a [=pattern parser=] |parser|, a string |prefix|,
<p class=note>Next, we determine the [=part=] [=part/name=]. This can be explicitly provided by a "<a for=token/type>`name`</a>" [=token=] or be automatically assigned.</a>
1. If |name token| is not null, then set |name| to |name token|'s [=token/value=].
1. Otherwise if |regexp or wildcard token| is not null:
1. Set |name| to |parser|'s [=pattern parser/next numeric name=].
1. Set |name| to |parser|'s [=pattern parser/next numeric name=], [=serialize an integer|serialized=].
1. Increment |parser|'s [=pattern parser/next numeric name=] by 1.
1. If the result of running [=is a duplicate name=] given |parser| and |name| is true, then throw a {{TypeError}}.
1. Let |encoded prefix| be the result of running |parser|'s [=pattern parser/encoding callback=] given |prefix|.
Expand Down

0 comments on commit 1259680

Please sign in to comment.