This commit is contained in:
TJ Holowaychuk 2014-04-24 17:58:37 -07:00
parent 239c0ce1f9
commit 94dd87741e

View file

@ -87,7 +87,7 @@ var proto = module.exports = {
// don't do anything if there is no error. // don't do anything if there is no error.
// this allows you to pass `this.onerror` // this allows you to pass `this.onerror`
// to node-style callbacks. // to node-style callbacks.
if (undefined == err) return; if (null == err) return;
assert(err instanceof Error, 'non-error thrown: ' + err); assert(err instanceof Error, 'non-error thrown: ' + err);