worker: fix --abort-on-uncaught-exception handling
The set_abort_on_uncaught_exception(false)
line was supposed to
prevent aborting when running Workers in
--abort-on-uncaught-exception
mode, but it was incorrectly set
and not checked properly in the should-abort callback.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines