assert.throws can now accept as RegExp
authorOleg Slobodskoi <oleg008@gmail.com>
Fri, 26 Nov 2010 23:03:31 +0000 (00:03 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 30 Nov 2010 01:22:36 +0000 (17:22 -0800)
commit02083412eb3eb673699ef9d3eef04078da8247d5
tree44f900e765603ac273760cc06b4f5aa0fd75d86b
parent86727b15f3f1d33a077e4044991264be74497b37
assert.throws can now accept as RegExp

makes validation of errors more flexible
lib/assert.js
test/simple/test-assert.js