qassert.js
// and should not be re-failed.
and should not be re-failed.
and should not be re - failed .
function fail( actual, expected, message, operator, stackStartFunction ) {
    var inspectOpts = { showHidden: true, depth: 4, maxArrayLength: 10, breakLength: 10 };
    var err = new assert.AssertionError({
        message: util.inspect(actual, inspectOpts) + ' ' + operator + ' ' + util.inspect(expected, inspectOpts) + ': ' + (message || 'fail'),
        generatedMessage: message === undefined,
        actual: actual,
        expected: expected,
        operator: operator,
        stackStartFn: stackStartFunction
    })
    err.stack.indexOf('\n') > 0 || Error.captureStackTrace(err, stackStartFunction);
    err.generatedMessage = (message === undefined);
    throw err;
}
function fail ( actual , expected , message , operator , stackStartFunction ) { var inspectOpts = { showHidden : true , depth : 4 , maxArrayLength : 10 , breakLength : 10 } ; var err = new assert . AssertionError ( { message : util . inspect ( actual , inspectOpts ) + ' ' + operator + ' ' + util . inspect ( expected , inspectOpts ) + ': ' + ( message || 'fail' ) , generatedMessage : message === undefined , actual : actual , expected : expected , operator : operator , stackStartFn : stackStartFunction } ) err . stack . indexOf ( '\n' ) > 0 || Error . captureStackTrace ( err , stackStartFunction ) ; err . generatedMessage = ( message === undefined ) ; throw err ; }
and should not be re-failed.
and should not be re - failed .
// node-v10 and up deprecate the multi-argument form of assert.fail, use AssertionError // ensure a canonical "actual op expected: msg" error message // older node do not automatically capture a stack trace