Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Commit

Permalink
allow use of throws, with out saying what should be thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed May 4, 2012
1 parent b19a96c commit d77b95c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion higher.js
Expand Up @@ -99,7 +99,7 @@ function noop () {}

function throws (actual, assertion, message) {
if('string' == typeof assertion) message = assertion, assertion= noop

if(!assertion) assertion = noop
try {
actual()
} catch (err) {
Expand Down

0 comments on commit d77b95c

Please sign in to comment.