Re: How can I get the complete reference of the Node API?

60 views
Skip to first unread message

mscdex

unread,
Nov 12, 2012, 10:01:12 PM11/12/12
to nodejs
On Nov 12, 8:33 pm, Tang Tianyong <tan...@gmail.com> wrote:
> assert.fail(iX, iY, "iX is bigger than iY", "<");
> // prints nothing, because it does not fail

This *should* print something, and it does when I try it on node
0.8.14.

assert.fail() should *always* throw an exception. It does not do any
checks: https://github.com/joyent/node/blob/v0.8/lib/assert.js#L101

Tang Tianyong

unread,
Nov 12, 2012, 10:16:38 PM11/12/12
to nod...@googlegroups.com
Thanks for your help. The source code can explain everything. :P
Reply all
Reply to author
Forward
0 new messages