···110110 return false;
111111}
112112113113-function cleanup_context(): void {
113113+function finalize_dependencies(): void {
114114 let dependencies = eval_listener!._dependencies;
115115116116 if (eval_untracked_sources) {
117117 // We have new dependencies, so let's unsubscribe from stale dependencies.
118118- prune_context_sources();
118118+ prune_old_dependencies();
119119120120 if (eval_sources_index > 0) {
121121 // We have existing dependencies still depended on, so let's expand the
···147147 } else if (eval_sources_index < eval_listener!._dependencies.length) {
148148 // We don't have new dependencies, but the index pointer isn't pointing to
149149 // the end of the array, so we need to clean up the rest.
150150- prune_context_sources();
150150+ prune_old_dependencies();
151151 dependencies.length = eval_sources_index;
152152 }
153153}
154154155155-function prune_context_sources(): void {
155155+function prune_old_dependencies(): void {
156156 const dependencies = eval_listener!._dependencies;
157157158158 for (let i = 0, ilen = dependencies.length; i < ilen; i++) {
···404404 this._epoch = this._realm_write_epoch = ++write_clock;
405405 }
406406407407- cleanup_context();
407407+ finalize_dependencies();
408408409409 eval_listener = prev_listener;
410410 eval_untracked_sources = prev_sources;
···538538 this._flags = (flags & ~Flags.DISPOSED & ~Flags.DIRTY & ~Flags.MAYBE_DIRTY) | Flags.RUNNING;
539539540540 return () => {
541541- cleanup_context();
541541+ finalize_dependencies();
542542543543 eval_listener = prev_listener;
544544 eval_untracked_sources = prev_sources;