]> source.dussan.org Git - jquery.git/commit
Core: Don't rely on splice being present on input
authorBruno PIERRE <brunopierre4@yahoo.fr>
Mon, 24 Jan 2022 17:55:16 +0000 (18:55 +0100)
committerGitHub <noreply@github.com>
Mon, 24 Jan 2022 17:55:16 +0000 (18:55 +0100)
commit9c6f64c7b51d50e334ef1183e2937ad77c0a68b0
tree769a1b64a6760c6e21831d5f4b35d3a610e37162
parenteb9ceb2facbeff1c66a41824bd0ac0c56d0c5c62
Core: Don't rely on splice being present on input

Without this fix calling `jQuery.uniqueSort` on an array-like can result in:

TypeError: results.splice is not a function
    at Function.jQuery.uniqueSort (https://code.jquery.com/jquery-git.js:664:12)
    at jQuery.fn.init.find (https://code.jquery.com/jquery-git.js:2394:27)
    at gocusihafe.js:3:4

Closes gh-4986
src/selector/uniqueSort.js
src/var/splice.js [new file with mode: 0644]
test/unit/selector.js