Deno's URLPattern.exec(string)
implementation differs from the node polyfill
#28247
Labels
needs investigation
requires further investigation before determining if it is an issue or not
Version: Deno 2.2.1
Heyy everyone,
It seems like Deno's
URLPattern.exec(string)
implementation differs from the node polyfill, which is causing some libraries to behave inconsistently or even break when running in Deno.Reproduction:
Expected Behavior (Chrome/Node Polyfill):
Actual Behavior (Deno):
Difference:
In Deno, the
hostname.groups
object does not contain the expected named group (domain
), while in Chrome/Node's polyfill, it does ("groups": { "domain": "localhost" }
). This discrepancy is causing some libraries that rely on the expected output format to break.Is this an intentional difference, or could it be a bug in Deno’s implementation?
Thanks in advance!
The text was updated successfully, but these errors were encountered: