url: add Symbol.toStringTag to URLPattern · nodejs/node@e51673b · GitHub
Skip to content

Commit e51673b

Browse files
XadillaXaduh95
authored andcommitted
url: add Symbol.toStringTag to URLPattern
Define Symbol.toStringTag on URLPattern.prototype so its class string matches the Web IDL interface name. Add coverage for the property descriptor and Object.prototype.toString(). Fixes: #65924 Signed-off-by: XadillaX <i@2333.moe> PR-URL: #65925 Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 9b3f1aa commit e51673b

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

‎src/node_url_pattern.cc‎

Lines changed: 7 additions & 1 deletion

‎test/parallel/test-urlpattern.js‎

Lines changed: 14 additions & 0 deletions

0 commit comments

Comments
 (0)