Skip to content

Commit ef18a6e

Browse files
authored
Remove toReversed and toSorted func prototypes from extern.js.
1 parent 5f8ff12 commit ef18a6e

File tree

1 file changed

+0
-21
lines changed
  • javascript/ql/test/query-tests/NodeJS/DubiousImport

1 file changed

+0
-21
lines changed

javascript/ql/test/query-tests/NodeJS/DubiousImport/externs.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,6 @@ Array.prototype.push = function(var_args) {};
333333
*/
334334
Array.prototype.reverse = function() {};
335335

336-
/**
337-
* Returns a new array with the elements in reversed order.
338-
*
339-
* @this {{length: number}}
340-
* @template T
341-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toReversed
342-
*/
343-
Array.prototype.toReversed = function() {};
344-
345336
/**
346337
* Removes the first element from an array and returns that element. This
347338
* method changes the length of the array.
@@ -380,18 +371,6 @@ Array.prototype.slice = function(opt_begin, opt_end) {};
380371
*/
381372
Array.prototype.sort = function(opt_compareFunction) {};
382373

383-
/**
384-
* Returns a new array with the elements sorted.
385-
*
386-
* @param {function(T,T):number=} opt_compareFunction Specifies a function that
387-
* defines the sort order. If omitted, the array elements are converted to strings,
388-
* then sorted according to each character's Unicode code point value.
389-
* @this {{length: number}|Array.}
390-
* @template T
391-
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/toSorted
392-
*/
393-
Array.prototype.toSorted = function(opt_compareFunction) {};
394-
395374
/**
396375
* Changes the content of an array, adding new elements while removing old
397376
* elements.

0 commit comments

Comments
 (0)