mirror of
https://github.com/github/codeql.git
synced 2026-04-24 08:15:14 +02:00
Added test case for Array.prototype.toReversed, which is currently not flagged as a taint sink.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user