No stack trace for some type errors



  • Script execution has been terminated due to a fatal error: TypeError: link.getRangeTo is not a function
     
    This was due to me calling somegenericobject.getRangeTo so I knew how to fix it, but it was weird that it didn't produce a stack trace.


  • another example:

    TypeError: Cannot read property 'toUpperCase' of undefined

    at module.exports (arbitrage:38:27)

    Here's a call that produces that error:
     
    Game.map.getRoomLinearDistance(undefined,undefined)
     
    Shouldn't it give me a more verbose trace?