Commit c59ae86
url: add value argument to has and delete methods
The change aims to add value argument to two methods of URLSearchParams
class i.e the has method and the delete method. For has method, if
value argument is provided, then use it to check for presence. For
delete method, if value argument provided, use it to delete.
Fixes: #47883
PR-URL: #47885
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>1 parent 3be5335 commit c59ae86Copy full SHA for c59ae86
File tree
Expand file treeCollapse file tree
15 files changed
+709
-609
lines changedOpen diff view settings
Filter options
- benchmark
- doc/api
- lib/internal
- test/fixtures/wpt
- url
- resources
Expand file treeCollapse file tree
15 files changed
+709
-609
lines changedOpen diff view settings
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
360 | 360 | |
361 | 361 | |
362 | 362 | |
363 | | - |
364 | | - |
| 363 | + |
| 364 | + |
| 365 | + |
365 | 366 | |
366 | 367 | |
367 | 368 | |
|
Collapse file
+30-4Lines changed: 30 additions & 4 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
859 | 859 | |
860 | 860 | |
861 | 861 | |
862 | | - |
| 862 | + |
| 863 | + |
| 864 | + |
| 865 | + |
| 866 | + |
| 867 | + |
| 868 | + |
| 869 | + |
863 | 870 | |
864 | 871 | |
| 872 | + |
| 873 | + |
| 874 | + |
| 875 | + |
865 | 876 | |
866 | | - |
| 877 | + |
867 | 878 | |
868 | 879 | |
869 | 880 | |
| ||
918 | 929 | |
919 | 930 | |
920 | 931 | |
921 | | - |
| 932 | + |
| 933 | + |
| 934 | + |
| 935 | + |
| 936 | + |
| 937 | + |
| 938 | + |
| 939 | + |
922 | 940 | |
923 | 941 | |
| 942 | + |
924 | 943 | |
925 | 944 | |
926 | | - |
| 945 | + |
| 946 | + |
| 947 | + |
| 948 | + |
| 949 | + |
| 950 | + |
| 951 | + |
| 952 | + |
927 | 953 | |
928 | 954 | |
929 | 955 | |
|
Collapse file
+30-11Lines changed: 30 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
344 | 344 | |
345 | 345 | |
346 | 346 | |
347 | | - |
348 | | - |
| 347 | + |
| 348 | + |
349 | 349 | |
350 | 350 | |
351 | 351 | |
| ||
354 | 354 | |
355 | 355 | |
356 | 356 | |
357 | | - |
358 | | - |
359 | | - |
360 | | - |
361 | | - |
362 | | - |
| 357 | + |
| 358 | + |
| 359 | + |
| 360 | + |
| 361 | + |
| 362 | + |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
363 | 374 | |
364 | 375 | |
365 | 376 | |
| ||
404 | 415 | |
405 | 416 | |
406 | 417 | |
407 | | - |
408 | | - |
| 418 | + |
| 419 | + |
409 | 420 | |
410 | 421 | |
411 | 422 | |
| ||
414 | 425 | |
415 | 426 | |
416 | 427 | |
| 428 | + |
| 429 | + |
| 430 | + |
| 431 | + |
| 432 | + |
417 | 433 | |
418 | 434 | |
419 | | - |
| 435 | + |
| 436 | + |
| 437 | + |
420 | 438 | |
421 | 439 | |
| 440 | + |
422 | 441 | |
423 | 442 | |
424 | 443 | |
|
Collapse file
test/fixtures/wpt/README.md
Copy file name to clipboardExpand all lines: test/fixtures/wpt/README.md+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
31 | 31 | |
32 | 32 | |
33 | 33 | |
|
Collapse file
test/fixtures/wpt/url/README.md
Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/README.md+24-26Lines changed: 24 additions & 26 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
28 | | - |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
29 | 27 | |
30 | 28 | |
31 | 29 | |
|
Collapse file
test/fixtures/wpt/url/failure.html
Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/failure.html+6-5Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
13 | | - |
14 | | - |
| 12 | + |
| 13 | + |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
| ||
30 | 31 | |
31 | 32 | |
32 | 33 | |
33 | | - |
| 34 | + |
34 | 35 | |
35 | 36 | |
36 | 37 | |
|
Collapse file
test/fixtures/wpt/url/historical.any.js
Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/historical.any.js+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
36 | 36 | |
37 | 37 | |
38 | 38 | |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
39 | 46 | |
Collapse file
test/fixtures/wpt/url/resources/a-element-origin.js
Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/a-element-origin.js+18-13Lines changed: 18 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
13 | 12 | |
14 | 13 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
21 | 26 | |
22 | 27 | |
23 | | - |
| 28 | + |
24 | 29 | |
25 | | - |
| 30 | + |
26 | 31 | |
27 | 32 | |
Collapse file
test/fixtures/wpt/url/resources/a-element.js
Copy file name to clipboardExpand all lines: test/fixtures/wpt/url/resources/a-element.js+19-14Lines changed: 19 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
13 | 12 | |
14 | 13 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
21 | 26 | |
22 | 27 | |
23 | 28 | |
| ||
30 | 35 | |
31 | 36 | |
32 | 37 | |
33 | | - |
| 38 | + |
34 | 39 | |
35 | 40 | |
36 | 41 | |
| ||
49 | 54 | |
50 | 55 | |
51 | 56 | |
52 | | - |
| 57 | + |
53 | 58 | |
54 | 59 | |
0 commit comments