Files
node/lib
cjihrig 14dc9175eb assert: throw when block is not a function
Currently, anything passed as the block argument to throws()
and doesNotThrow() is interpreted as a function, which can
lead to unexpected results. This commit checks the type of
block, and throws a TypeError if it is not a function.

Fixes: https://github.com/iojs/io.js/issues/275
PR-URL: https://github.com/iojs/io.js/pull/308
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-12 14:10:33 -05:00
..
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-12-12 09:52:05 -08:00
2014-11-22 17:23:30 +01:00
2015-01-11 00:46:23 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2015-01-11 22:21:04 +01:00
2014-11-22 17:23:30 +01:00
2014-12-09 17:57:09 +01:00
2014-12-30 23:29:32 +01:00
2014-11-28 13:21:43 +03:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-12-14 18:52:57 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00
2014-11-22 17:23:30 +01:00