Added test case for Array.prototype.toReversed, which is currently not flagged as a taint sink.

This commit is contained in:
Napalys
2024-11-08 14:23:10 +01:00
parent 3215967cbc
commit 7427a24ca1
3 changed files with 12 additions and 1 deletions

View File

@@ -333,6 +333,15 @@ Array.prototype.push = function(var_args) {};
*/
Array.prototype.reverse = function() {};
/**
* Returns a new array with the elements in reversed order.
*
* @this {{length: number}}
* @template T
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toReversed
*/
Array.prototype.toReversed = function() {};
/**
* Removes the first element from an array and returns that element. This
* method changes the length of the array.