Permalink
Browse files

allow use of throws, with out saying what should be thrown

  • Loading branch information...
1 parent b19a96c commit d77b95cd2a048ec7dbc70e31905e3e083f7f630f @dominictarr committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 higher.js
View
@@ -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) {

0 comments on commit d77b95c

Please sign in to comment.