To me, the bigger issue is that the unused 3rd argument is silently ignored without error or warning.
In Python for example you can explicitly declare variadic functions to ignore extra arguments. But when it's the default behavior you can for example change the official signature of a callback interface without breaking compatibility. It can be pretty liberating to work in a best-effort language...though perhaps it makes testing a bit more important.
The array-like `arguments` object will always reflect what was actually passed to the function though.