adding jsproc tests for overallocation and infinite recursion
fixing comment typos
removing unnecessary catch/rethrow
fixing code style
moving promise_t::pulse out of catch blocks
moving possible cond_t::pulse out of catch blocks
modified js_runner_t to mark workers as errored before releasing, so as to prevent possibly waiting inside a catch block