bugfix toThrow did actually not throw