summaryrefslogtreecommitdiff
path: root/ext/url/00_url.js
diff options
context:
space:
mode:
authorLino Le Van <11367844+lino-levan@users.noreply.github.com>2023-03-14 13:28:33 -0700
committerGitHub <noreply@github.com>2023-03-14 20:28:33 +0000
commiteb990efcce1e5390e4ed76b858c05c6f9b3b6c11 (patch)
tree441a5d2f9430f354fb84a9be84e19e8844781982 /ext/url/00_url.js
parent1930c09b04bbf2150a601c0fe47c44750d8c2b57 (diff)
feat(ext/url): URLSearchParams.size (#17884)
Diffstat (limited to 'ext/url/00_url.js')
-rw-r--r--ext/url/00_url.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/url/00_url.js b/ext/url/00_url.js
index 422a23930..c288225e3 100644
--- a/ext/url/00_url.js
+++ b/ext/url/00_url.js
@@ -302,6 +302,11 @@ class URLSearchParams {
webidl.assertBranded(this, URLSearchParamsPrototype);
return ops.op_url_stringify_search_params(this[_list]);
}
+
+ get size() {
+ webidl.assertBranded(this, URLSearchParamsPrototype);
+ return this[_list].length;
+ }
}
webidl.mixinPairIterable("URLSearchParams", URLSearchParams, _list, 0, 1);