mirror of https://github.com/lukechilds/node.git
Browse Source
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>v1.8.0-commit
2 changed files with 39 additions and 2 deletions
Loading…
Reference in new issue