Re:Don't use functions as callbacks unless they're designed ...
by magicalhippo on Monday February 08, 2021 @07:02AM
(#26063386)
But it would only have to be a runtime error (your words) for the code which is dynamically loaded.
Static code will get checked at compile-time, even though the exact function passed as callback depends on the incoming data via a series of if/case statements say, from a dictionary or whatever.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...