Skip to content

Commit

Permalink
rebuild mocha.js [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Oct 11, 2016
1 parent e2274b4 commit 2ceb9f2
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions mocha.js
Expand Up @@ -4723,9 +4723,13 @@ Runner.prototype.fail = function (test, err) {
err = new Error('the ' + type(err) + ' ' + stringify(err) + ' was thrown, throw an Error :)');
}

err.stack = (this.fullStackTrace || !err.stack)
? err.stack
: stackFilter(err.stack);
try {
err.stack = (this.fullStackTrace || !err.stack)
? err.stack
: stackFilter(err.stack);
} catch (ignored) {
// some environments do not take kindly to monkeying with the stack
}

this.emit('fail', test, err);
};
Expand Down Expand Up @@ -6745,6 +6749,12 @@ exports.isPromise = function isPromise (value) {
return typeof value === 'object' && typeof value.then === 'function';
};

/**
* It's a noop.
* @api
*/
exports.noop = function () {};

}).call(this,require('_process'),require("buffer").Buffer)
},{"./to-iso-string":37,"_process":67,"buffer":44,"debug":2,"fs":42,"glob":42,"json3":54,"path":42,"util":84}],39:[function(require,module,exports){
'use strict'
Expand Down

0 comments on commit 2ceb9f2

Please sign in to comment.