Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a use counter for multiple-argument calls to `URLSearchParams.pro…
…totype.{has,delete}` WHATWG is considering adding a two-argument overload to `URLSearchParams.prototype.has` that would allow checking for the existence of a key-value entry; and similarly a two-argument overload to `URLSearchParams.prototype.delete` that would allow deleting a single entry, rather than all entries with the same name (whatwg/url#735). It was, however, brought up that this is likely not web compatible, since authors might have been using code patterns like `array.every(usp.has, usp)`, which call the `has` function with multiple arguments. This change therefore adds a use counter to detect any such calls that might have different behavior with this change.. Change-Id: I863b7c462b0909c3794ab11389aa2021656a4919 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4269830 Reviewed-by: Hayato Ito <hayato@chromium.org> Reviewed-by: Adam Rice <ricea@chromium.org> Commit-Queue: Andreu Botella <abotella@igalia.com> Cr-Commit-Position: refs/heads/main@{#1108831}
- Loading branch information
1 parent
acf2fcf
commit f1dd561
Showing
5 changed files
with
30 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters