Skip to content

Commit 2ceb9f2

Browse files
committed
rebuild mocha.js [ci skip]
1 parent e2274b4 commit 2ceb9f2

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

mocha.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4723,9 +4723,13 @@ Runner.prototype.fail = function (test, err) {
47234723
err = new Error('the ' + type(err) + ' ' + stringify(err) + ' was thrown, throw an Error :)');
47244724
}
47254725

4726-
err.stack = (this.fullStackTrace || !err.stack)
4727-
? err.stack
4728-
: stackFilter(err.stack);
4726+
try {
4727+
err.stack = (this.fullStackTrace || !err.stack)
4728+
? err.stack
4729+
: stackFilter(err.stack);
4730+
} catch (ignored) {
4731+
// some environments do not take kindly to monkeying with the stack
4732+
}
47294733

47304734
this.emit('fail', test, err);
47314735
};
@@ -6745,6 +6749,12 @@ exports.isPromise = function isPromise (value) {
67456749
return typeof value === 'object' && typeof value.then === 'function';
67466750
};
67476751

6752+
/**
6753+
* It's a noop.
6754+
* @api
6755+
*/
6756+
exports.noop = function () {};
6757+
67486758
}).call(this,require('_process'),require("buffer").Buffer)
67496759
},{"./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){
67506760
'use strict'

0 commit comments

Comments
 (0)