No, it means you cannot possibly do a foulproof check.
Consider this:
function a() { }
function b(arg) { print(arg) }
a(1,2,3,4)
b()
function a() { }
function b(arg) { print(arg) }
a(1,2,3,4)
b()
To copy to clipboard, switch view to plain text mode
The code is correct as far as JavaScript is concerned (try running it and see for yourself). I understand that you'd like to get a "oh, your code is wrong, you messed up function arguments" message but the problem is the code is not wrong, it is a correct working JavaScript snippet.
Bookmarks