In some Node.js, I had
function examp() {
..
blah = bestAvailableDelauneySlot()
..
}
However the function bestAvailableDelauneySlot did not exist at all.
(In my case I had foolishly forgotten to type the module, so, it should have been blah = triangles.bestAvailableDelauneySlot() ..)
Now, the code
blah = bestAvailableDelauneySlot()
doesn't create any error AT ALL, until, for some reason examp is called at runtime. (Which only happens in obscure situations, once a week).
VSCode does not at all tell me there is no definition for bestAvailableDelauneySlot. "using strict" does not seem to help.
How the heck to safeguard against an undefined function name??
A simple typo
blah = triangles.bestAvailableDelauneySlozz()
and crash. Solution?
Perhaps ideally something that integrates w/ VSCode?
(BTW I generally use VSCode on a Mac ... perhaps that's the problem :O )






