You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(shell-evaluator): do not let eval() hold extra context MONGOSH-3223 (#2677)
Calling `eval()` makes the entire outside scope available to
the evaluated code, and consequentially keeps it alive for garbage
collection purposes longer than it should or than it needs to.
Since we only use `eval()` to modify global state, putting the
call into a file where no other extra context exists is a decent
solution to this issue.
0 commit comments