The recent fix to make sure the default scheduler is restored whether or not the evaluationFinished mod is enabled (26d980b1eca3478bfdf7a1db1508261aa365c0b2) exposed a bug where the default scheduler would be restored as soon as any item in the evaluation stack is popped off.
Only restore the default scheduler when the last item in the stack is popped off.
Also add a regression test that 💯% reproduces this and confirms the fix.
Description
The recent fix to make sure the default scheduler is restored whether or not the
evaluationFinished
mod is enabled (26d980b1eca3478bfdf7a1db1508261aa365c0b2) exposed a bug where the default scheduler would be restored as soon as any item in the evaluation stack is popped off.Only restore the default scheduler when the last item in the stack is popped off.
Also add a regression test that 💯% reproduces this and confirms the fix.