Skip to content
Snippets Groups Projects
Commit 385ee4e9 authored by deuce's avatar deuce
Browse files

Make the on_exit() evals happen when the scope exits rather than when the

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.
parent 49926b67
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment