I'm genuinely confused about what assert.throws() in does in Node.js. It doesn't seem to return anything? The docs don't seem to be particularly helpful, either. https://nodejs.org/api/assert.html#assert_assert_throws_fn_error_message …
-
-
I haven’t seen any assert/dcheck APIs that work differently
-
I'm just now beginning to become more familiar with assertion libs – I've skirted around needing them, but I've hit a point where I can't get around it any longer.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.