Click to see the query in the CodeQL repository
The properties callee and caller of arguments objects as well as the properties caller and arguments of function objects are not available in strict-mode code, and any attempt to access them will result in a runtime error.
Instead of using arguments.callee, you can refer to the enclosing function by its name (possibly giving it a name first if it is an anonymous function expression). Uses of the other properties can often be eliminated by refactoring the program.
In the following example, arguments.callee is used to recursively invoke the enclosing function, which is anonymous.
To avoid this use, the function can be given a name and referred to using that name:
Mozilla Developer Network: arguments.