Skip to content
  • deuce's avatar
    Make the on_exit() evals happen when the scope exits rather than when the · 385ee4e9
    deuce authored
    global object exits.
    
    This fixes a problem where the terminal server reuses the same global object
    for all JS scripts, and they uses nested exec()s.  When the innermost script
    would exit, the on_exit evals would occure in IT'S scope rather than in the
    scope it was defined in, resulting in incorrect behaviour.
    385ee4e9