I ran into this same problem today and opted for another solution not mentioned here: partial function application using bind():
expect(handleError.bind(null, true)).to.not.throw();
expect(handleError.bind(null, "anything else")).to.throw("stop js execution");
This has the benefit of being concise, using plain old JavaScript, requiring no extra functions and you can even provide the value of this
should your function depend on it.