File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,10 @@ class URLSearchParams: public jsg::Object {
123
123
124
124
jsg::UsvString toString ();
125
125
126
+ inline uint getSize () { return list.size (); }
127
+
126
128
JSG_RESOURCE_TYPE (URLSearchParams) {
129
+ JSG_READONLY_PROTOTYPE_PROPERTY (size, getSize);
127
130
JSG_METHOD (append);
128
131
JSG_METHOD_NAMED (delete , delete_);
129
132
JSG_METHOD (get);
Original file line number Diff line number Diff line change @@ -170,7 +170,10 @@ class URLSearchParams: public jsg::Object {
170
170
171
171
kj::String toString ();
172
172
173
+ inline uint getSize () { return url->query .size (); }
174
+
173
175
JSG_RESOURCE_TYPE (URLSearchParams, CompatibilityFlags::Reader flags) {
176
+ JSG_READONLY_PROTOTYPE_PROPERTY (size, getSize);
174
177
JSG_METHOD (append);
175
178
JSG_METHOD_NAMED (delete , delete_);
176
179
JSG_METHOD (get);
You can’t perform that action at this time.
0 commit comments